Skip to content

Commit 513c9c3

Browse files
committed
Test on newer Sphinx versions
1 parent 41d01d7 commit 513c9c3

16 files changed

Lines changed: 231 additions & 122 deletions

.github/workflows/python_ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ jobs:
2828
fail-fast: False
2929
matrix:
3030
config:
31-
- {python-version: "3.7", testenvs: "py37-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3},build", experimental: False}
32-
- {python-version: "3.8", testenvs: "py38-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1},build", experimental: False}
33-
- {python-version: "3.9", testenvs: "py39-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
34-
- {python-version: "3.10", testenvs: "py310-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
35-
- {python-version: "3.11", testenvs: "py311-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
36-
- {python-version: "3.12", testenvs: "py312-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
37-
- {python-version: "3.13", testenvs: "py313-sphinx{6.2,7.0,7.1,7.2},build", experimental: False}
38-
- {python-version: "pypy-3.7", testenvs: "pypy37-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3},build", experimental: False}
39-
- {python-version: "pypy-3.8", testenvs: "pypy38-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
40-
- {python-version: "pypy-3.9-v7.3.15", testenvs: "pypy39-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: True}
31+
- {python-version: "3.7", testenvs: "py37-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
32+
- {python-version: "3.8", testenvs: "py38-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
33+
- {python-version: "3.9", testenvs: "py39-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
34+
- {python-version: "3.10", testenvs: "py310-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
35+
- {python-version: "3.11", testenvs: "py311-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
36+
- {python-version: "3.12", testenvs: "py312-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
37+
- {python-version: "3.13", testenvs: "py313-sphinx{6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
38+
- {python-version: "pypy-3.7", testenvs: "pypy37-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
39+
- {python-version: "pypy-3.8", testenvs: "pypy38-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
40+
- {python-version: "pypy-3.9-v7.3.15", testenvs: "pypy39-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: True}
4141

4242
steps:
4343
- name: Checkout 🛎️

.github/workflows/python_ci_linux.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ jobs:
2929
fail-fast: False
3030
matrix:
3131
config:
32-
- {python-version: "3.7", testenvs: "py37-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3},build", experimental: False}
33-
- {python-version: "3.8", testenvs: "py38-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1},build", experimental: False}
34-
- {python-version: "3.9", testenvs: "py39-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
35-
- {python-version: "3.10", testenvs: "py310-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
36-
- {python-version: "3.11", testenvs: "py311-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
37-
- {python-version: "3.12", testenvs: "py312-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
38-
- {python-version: "3.13", testenvs: "py313-sphinx{6.2,7.0,7.1,7.2},build", experimental: False}
39-
- {python-version: "pypy-3.7", testenvs: "pypy37-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3},build", experimental: False}
40-
- {python-version: "pypy-3.8", testenvs: "pypy38-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
41-
- {python-version: "pypy-3.9", testenvs: "pypy39-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: True}
32+
- {python-version: "3.7", testenvs: "py37-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
33+
- {python-version: "3.8", testenvs: "py38-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
34+
- {python-version: "3.9", testenvs: "py39-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
35+
- {python-version: "3.10", testenvs: "py310-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
36+
- {python-version: "3.11", testenvs: "py311-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
37+
- {python-version: "3.12", testenvs: "py312-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
38+
- {python-version: "3.13", testenvs: "py313-sphinx{6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
39+
- {python-version: "pypy-3.7", testenvs: "pypy37-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
40+
- {python-version: "pypy-3.8", testenvs: "pypy38-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
41+
- {python-version: "pypy-3.9", testenvs: "pypy39-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: True}
4242

4343
steps:
4444
- name: Checkout 🛎️

.github/workflows/python_ci_macos.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ jobs:
2828
fail-fast: False
2929
matrix:
3030
config:
31-
- {python-version: "3.7", os-ver: "13", testenvs: "py37-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3},build", experimental: False}
32-
- {python-version: "3.8", os-ver: "14", testenvs: "py38-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1},build", experimental: False}
33-
- {python-version: "3.9", os-ver: "14", testenvs: "py39-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
34-
- {python-version: "3.10", os-ver: "14", testenvs: "py310-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
35-
- {python-version: "3.11", os-ver: "14", testenvs: "py311-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
36-
- {python-version: "3.12", os-ver: "14", testenvs: "py312-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
37-
- {python-version: "3.13", os-ver: "14", testenvs: "py313-sphinx{6.2,7.0,7.1,7.2},build", experimental: False}
38-
- {python-version: "pypy-3.7", os-ver: "13", testenvs: "pypy37-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3},build", experimental: False}
39-
- {python-version: "pypy-3.8", os-ver: "14", testenvs: "pypy38-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
40-
- {python-version: "pypy-3.9", os-ver: "14", testenvs: "pypy39-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: True}
31+
- {python-version: "3.7", os-ver: "13", testenvs: "py37-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
32+
- {python-version: "3.8", os-ver: "14", testenvs: "py38-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
33+
- {python-version: "3.9", os-ver: "14", testenvs: "py39-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
34+
- {python-version: "3.10", os-ver: "14", testenvs: "py310-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
35+
- {python-version: "3.11", os-ver: "14", testenvs: "py311-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
36+
- {python-version: "3.12", os-ver: "14", testenvs: "py312-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
37+
- {python-version: "3.13", os-ver: "14", testenvs: "py313-sphinx{6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
38+
- {python-version: "pypy-3.7", os-ver: "13", testenvs: "pypy37-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
39+
- {python-version: "pypy-3.8", os-ver: "14", testenvs: "pypy38-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
40+
- {python-version: "pypy-3.9", os-ver: "14", testenvs: "pypy39-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: True}
4141

4242
steps:
4343
- name: Checkout 🛎️

repo_helper.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ third_party_version_matrix:
129129
- 7.0
130130
- 7.1
131131
- 7.2
132+
- 7.3
133+
- 7.4
134+
- 8.0
135+
- 8.1
136+
- 8.2
132137
# - latest
133138

134139
exclude_files:

tests/conftest.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# stdlib
22
import sys
3-
from typing import Any, Iterator
3+
from typing import Any, Dict, Iterator, List, cast
44

55
# 3rd party
66
import pytest
@@ -12,9 +12,18 @@
1212
import types
1313
types.Union = types.UnionType
1414

15+
# stdlib
16+
import pathlib
17+
1518
# 3rd party
19+
import sphinx
1620
from sphinx.application import Sphinx
17-
from sphinx.testing.path import path
21+
22+
if sphinx.version_info >= (7, 2):
23+
path = pathlib.Path
24+
else:
25+
# 3rd party
26+
from sphinx.testing.path import path # type: ignore[assignment]
1827

1928
pytest_plugins = ("coincidence", "sphinx.testing.fixtures", "sphinx_toolbox.testing")
2029

@@ -99,4 +108,10 @@ def page(content: Any, request: Any) -> Iterator[BeautifulSoup]:
99108
pagename = request.param
100109
c = (content.outdir / pagename).read_text()
101110

102-
yield BeautifulSoup(c, "html5lib")
111+
soup = BeautifulSoup(c, "html5lib")
112+
113+
for meta in cast(List[Dict], soup.find_all("meta")):
114+
if meta.get("content", '') == "width=device-width, initial-scale=0.9, maximum-scale=0.9":
115+
meta.extract() # type: ignore[attr-defined]
116+
117+
return soup

tests/doc-test/test-root/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
]
55

66
package_root = "dummy_package"
7+
project = "Python"

tests/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ beautifulsoup4>=4.9.1
33
coincidence>=0.2.0
44
coverage>=5.1
55
coverage-pyver-pragma>=0.2.1
6+
defusedxml>=0.7.1
67
importlib-metadata>=3.6.0
78
pygments<=2.13.0,>=2.7.4
89
pytest>=6.0.0

tests/test_directive_/test_no_requirements_demo_no_requirements_demo_html_.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
{% set permalink = ("Link" if sphinx_version >= (7, 2) else 'Permalink') -%}
12
{% set heading = ("heading" if sphinx_version >= (5, 0) else 'headline') -%}
23
{% set section = ("section", "section") if docutils_version >= (0, 17) else ('div class="section"', "div") -%}
34
<!DOCTYPE html>
4-
<html{% if sphinx_version >= (5, 0) %} lang="en"{% endif %}>
5+
<html{% if sphinx_version >= (7, 2) %} data-content_root="./"{% endif %}{% if sphinx_version >= (5, 0) %} lang="en"{% endif %}>
56
<head>
67
<meta charset="utf-8"/>
78
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
@@ -11,8 +12,9 @@
1112
{% elif docutils_version[1] == 20 %}<meta content="width=device-width, initial-scale=1" name="viewport"/>
1213
{% endif %}<title>
1314
No Requirements Demo — Python documentation
14-
</title>
15-
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js">
15+
</title>{% if sphinx_version >= (7, 2) %}
16+
<script src="_static/documentation_options.js">{% else %}
17+
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js">{% endif %}
1618
</script>{% if sphinx_version < (6, 0) %}
1719
<script src="_static/jquery.js">
1820
</script>
@@ -34,15 +36,17 @@
3436
<{{ section[0] }} id="no-requirements-demo">
3537
<h1>
3638
No Requirements Demo
37-
<a class="headerlink" href="#no-requirements-demo" title="Permalink to this {{ heading }}">
39+
<a class="headerlink" href="#no-requirements-demo" title="{{ permalink }} to this {{ heading }}">
3840
3941
</a>
4042
</h1>
4143
<span class="problematic">
4244
.. extras-require:: extra_f
4345
:file: empty_requirements.txt
4446
</span>
45-
</{{ section[1] }}>
47+
</{{ section[1] }}>{% if sphinx_version >= (8, 1) %}
48+
<div class="clearer">
49+
</div>{% endif %}
4650
</div>
4751
</div>
4852
</div>

tests/test_directive_/test_output_flit_demo_html_.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
{% set permalink = ("Link" if sphinx_version >= (7, 2) else 'Permalink') -%}
12
{% set heading = ("heading" if sphinx_version >= (5, 0) else 'headline') -%}
23
{% set section = ("section", "section") if docutils_version >= (0, 17) else ('div class="section"', "div") -%}
34
<!DOCTYPE html>
4-
<html{% if sphinx_version >= (5, 0) %} lang="en"{% endif %}>
5+
<html{% if sphinx_version >= (7, 2) %} data-content_root="./"{% endif %}{% if sphinx_version >= (5, 0) %} lang="en"{% endif %}>
56
<head>
67
<meta charset="utf-8"/>
78
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
@@ -11,8 +12,9 @@
1112
{% elif docutils_version[1] == 20 %}<meta content="width=device-width, initial-scale=1" name="viewport"/>
1213
{% endif %}<title>
1314
flit Demo — Python documentation
14-
</title>
15-
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js">
15+
</title>{% if sphinx_version >= (7, 2) %}
16+
<script src="_static/documentation_options.js">{% else %}
17+
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js">{% endif %}
1618
</script>{% if sphinx_version < (6, 0) %}
1719
<script src="_static/jquery.js">
1820
</script>
@@ -34,7 +36,7 @@
3436
<{{ section[0] }} id="flit-demo">
3537
<h1>
3638
flit Demo
37-
<a class="headerlink" href="#flit-demo" title="Permalink to this {{ heading }}">
39+
<a class="headerlink" href="#flit-demo" title="{{ permalink }} to this {{ heading }}">
3840
3941
</a>
4042
</h1>
@@ -74,7 +76,9 @@ <h1>
7476
</div>
7577
</blockquote>
7678
</div>
77-
</{{ section[1] }}>
79+
</{{ section[1] }}>{% if sphinx_version >= (8, 1) %}
80+
<div class="clearer">
81+
</div>{% endif %}
7882
</div>
7983
</div>
8084
</div>

tests/test_directive_/test_output_manual_demo_html_.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
{% set permalink = ("Link" if sphinx_version >= (7, 2) else 'Permalink') -%}
12
{% set heading = ("heading" if sphinx_version >= (5, 0) else 'headline') -%}
23
{% set section = ("section", "section") if docutils_version >= (0, 17) else ('div class="section"', "div") -%}
34
<!DOCTYPE html>
4-
<html{% if sphinx_version >= (5, 0) %} lang="en"{% endif %}>
5+
<html{% if sphinx_version >= (7, 2) %} data-content_root="./"{% endif %}{% if sphinx_version >= (5, 0) %} lang="en"{% endif %}>
56
<head>
67
<meta charset="utf-8"/>
78
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
@@ -11,8 +12,9 @@
1112
{% elif docutils_version[1] == 20 %}<meta content="width=device-width, initial-scale=1" name="viewport"/>
1213
{% endif %}<title>
1314
Manual Demo — Python documentation
14-
</title>
15-
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js">
15+
</title>{% if sphinx_version >= (7, 2) %}
16+
<script src="_static/documentation_options.js">{% else %}
17+
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js">{% endif %}
1618
</script>{% if sphinx_version < (6, 0) %}
1719
<script src="_static/jquery.js">
1820
</script>
@@ -34,7 +36,7 @@
3436
<{{ section[0] }} id="manual-demo">
3537
<h1>
3638
Manual Demo
37-
<a class="headerlink" href="#manual-demo" title="Permalink to this {{ heading }}">
39+
<a class="headerlink" href="#manual-demo" title="{{ permalink }} to this {{ heading }}">
3840
3941
</a>
4042
</h1>
@@ -74,7 +76,9 @@ <h1>
7476
</div>
7577
</blockquote>
7678
</div>
77-
</{{ section[1] }}>
79+
</{{ section[1] }}>{% if sphinx_version >= (8, 1) %}
80+
<div class="clearer">
81+
</div>{% endif %}
7882
</div>
7983
</div>
8084
</div>

0 commit comments

Comments
 (0)