Skip to content

Commit

Permalink
Attempt to raise docutils version bound
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Apr 21, 2024
1 parent 28c377f commit 94b913a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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

0 comments on commit 94b913a

Please sign in to comment.