mgedmin / mgedmin/restview

Code blocks do not support the :linenos: directive

Open
#56 1 comment 0 reactions 0 assignees View on GitHub
duplicate
Dominant language
Python
Stars
224
Forks
36
PR merge metrics
No merged PRs in 30d

Description

Please look at the following site for examples: [Directives/Showing Code Examples @ sphinx-doc.org](http://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html?highlight=line%20numbers#showing-code-examples)

E.g.:

.. code-block:: python
:linenos:

print("Hello World")

Contributor guide

No contributing guide indexed for this repository

Research direction

Read the linked Sphinx documentation and reproduce the provided reStructuredText code-block example in restview. Find where the code-block directive is handled, then verify that the :linenos: option produces line numbers for the displayed Python example.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.