Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jobec opened this issue Feb 11, 2020 · 3 comments
Open

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

jobec opened this issue Feb 11, 2020 · 3 comments
Labels
bug This issue/PR relates to a bug. help wanted

Comments

@jobec
Copy link

jobec commented Feb 11, 2020

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"
@fmigneault
Copy link
Contributor

Also seeing this.
Breaking multiple linting checks pipeline.

@ssbarnea ssbarnea added bug This issue/PR relates to a bug. help wanted labels Aug 15, 2020
@thepabloaguilar
Copy link

I have the same issue here 😢

Code example:

.. code:: pycon
  :force:

  >>> assert Failure(1).failure() == 1
  >>> Success(1).failure()
  Traceback (most recent call last):
    ...
  returns.primitives.exceptions.UnwrapFailedError

doc8 output:

docs/pages/railway.rst:146: D000 Error in "code" directive:
unknown option: "force".
docs/pages/railway.rst:163: D000 Error in "code" directive:
unknown option: "force".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug. help wanted
Projects
None yet
Development

No branches or pull requests

4 participants