Skip to content

Error in "code-block" directive: unknown option: "linenos". #30

Open
@jobec

Description

@jobec

Related to #26

docs/index.rst:2: D000 Error in "code-block" directive:
unknown option: "linenos".

The same for these options:

  • linenos
  • lineno-start
  • caption
  • emphasize-lines
  • dedent

In Sphinx, this is valid, but doc8 sees it as an error.

.. code-block:: python
    :linenos:
    :caption: test.py
    :name: test.py
    :emphasize-lines: 2


    def foo():
        return "bar"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue/PR relates to a bug.help wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions