We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 357e76d commit 76a933bCopy full SHA for 76a933b
tests/test_builders.py
@@ -37,10 +37,13 @@ def test_basic():
37
)
38
assert search in content
39
elif isinstance(app.builder, SingleFileHTMLBuilder):
40
+ internal_ref = '#document-foo'
41
+ if sphinx.version_info[:3] < (7, 3, 0):
42
+ internal_ref = 'index.html' + internal_ref
43
search = (
44
'<ul>\n'
45
'<li class="toctree-l1">'
- '<a class="reference internal" href="index.html#document-foo">foo</a>'
46
+ f'<a class="reference internal" href="{internal_ref}">foo</a>'
47
'</li>\n'
48
'</ul>'
49
0 commit comments