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

raise docutils version bound #1559

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ packages = sphinx_rtd_theme
python_requires = >=3.6
install_requires =
sphinx >=5,<8
docutils <0.21
docutils <0.22
sphinxcontrib-jquery >=4,<5
tests_require =
pytest
Expand Down
7 changes: 6 additions & 1 deletion tests/test_builders.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os

import docutils
import pytest
import sphinx
from sphinx import addnodes
Expand Down Expand Up @@ -37,10 +38,14 @@ def test_basic():
)
assert search in content
elif isinstance(app.builder, SingleFileHTMLBuilder):
if docutils.__version_info__ >= (0, 21):
path = ""
else:
path = "index.html"
search = (
'<ul>\n'
'<li class="toctree-l1">'
'<a class="reference internal" href="index.html#document-foo">foo</a>'
f'<a class="reference internal" href="{path}#document-foo">foo</a>'
'</li>\n'
'</ul>'
)
Expand Down