Skip to content

Commit 64387c4

Browse files
authored
Merge branch 'master' into issue-11961/searchindex-omit-doctitle-anchors
2 parents 520a205 + b23ac4f commit 64387c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1431
-634
lines changed

.ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ select = [
222222
# "PLR0912", # Too many branches ({branches} > {max_branches})
223223
# "PLR0913", # Too many arguments to function call ({c_args} > {max_args})
224224
# "PLR0915", # Too many statements ({statements} > {max_statements})
225-
"PLR1701", # Merge `isinstance` calls: `{expr}`
226225
"PLR1711", # Useless `return` statement at end of function
227226
# "PLR1714", # Consider merging multiple comparisons: `{expr}`. Use a `set` if the elements are hashable.
228227
"PLR1722", # Use `sys.exit()` instead of `{name}`
@@ -373,6 +372,7 @@ select = [
373372
[lint.per-file-ignores]
374373
"doc/*" = [
375374
"ANN", # documentation doesn't need annotations
375+
"TCH001", # documentation doesn't need type-checking blocks
376376
]
377377
"doc/conf.py" = ["INP001", "W605"]
378378
"doc/development/tutorials/examples/*" = ["INP001"]

CHANGES.rst

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ Deprecated
1313
Features added
1414
--------------
1515

16-
* #12456: Add :option:`sphinx-autogen --remove-old` option.
17-
Patch by Chris Sewell.
18-
* #12448: Add :option:`sphinx-apidoc --remove-old` option.
19-
Patch by Chris Sewell.
20-
* #12358: Add :attr:`.Sphinx.fresh_env_used`.
21-
Patch by Chris Sewell.
22-
* #12361: Add :attr:`.BuildEnvironment.parser`.
23-
Patch by Chris Sewell.
2416
* #11165: Support the `officially recommended`_ ``.jinja`` suffix for template
2517
files.
2618
Patch by James Addison and Adam Turner
@@ -29,11 +21,41 @@ Features added
2921
* Flatten ``Union[Literal[T], Literal[U], ...]`` to ``Literal[T, U, ...]``
3022
when turning annotations into strings.
3123
Patch by Adam Turner.
24+
* #12319: ``sphinx.ext.extlinks``: Add ``extlink-{name}`` CSS class to links.
25+
Patch by Hugo van Kemenade.
26+
* #12387: Improve CLI progress message, when copying assets.
27+
Patch by INADA Nakoi and Bénédikt Tran.
28+
* #12361: Add :attr:`.BuildEnvironment.parser`.
29+
Patch by Chris Sewell.
30+
* #12358: Add :attr:`.Sphinx.fresh_env_used`.
31+
Patch by Chris Sewell.
3232
* #12329: Add detection of ambiguous ``std:label`` and ``std:term`` references during
3333
loading and resolution of Intersphinx targets.
3434
Patch by James Addison.
35-
* #12319: ``sphinx.ext.extlinks``: Add ``extlink-{name}`` CSS class to links.
36-
Patch by Hugo van Kemenade.
35+
* #12422: Do not duplicate "navigation" in aria-label of built-in themes.
36+
Patch by Thomas Weißschuh
37+
* #12421: Include project name in ``logo_alt`` of built-in themes.
38+
Patch by Thomas Weißschuh
39+
* #12448: Add :option:`sphinx-apidoc --remove-old` option.
40+
Patch by Chris Sewell.
41+
* #12456: Add :option:`sphinx-autogen --remove-old` option.
42+
Patch by Chris Sewell.
43+
* #12479: Add warning subtype ``toc.no_title``.
44+
Patch by Ondřej Navrátil.
45+
* #12492: Add helper methods for parsing reStructuredText content into nodes from
46+
within a directive.
47+
48+
- :py:meth:`~sphinx.util.docutils.SphinxDirective.parse_content_to_nodes()`
49+
parses the directive's content and returns a list of Docutils nodes.
50+
- :py:meth:`~sphinx.util.docutils.SphinxDirective.parse_text_to_nodes()`
51+
parses the provided text and returns a list of Docutils nodes.
52+
- :py:meth:`~sphinx.util.docutils.SphinxDirective.parse_inline()`
53+
parses the provided text into inline elements and text nodes.
54+
55+
Patch by Adam Turner.
56+
57+
* #12258: Support ``typing_extensions.Unpack``
58+
Patch by Bénédikt Tran and Adam Turner.
3759

3860
Bugs fixed
3961
----------
@@ -61,20 +83,16 @@ Bugs fixed
6183
* #12459: Add valid-type arguments to the ``linkcheck_rate_limit_timeout``
6284
configuration setting.
6385
Patch by James Addison.
86+
* #12331: Resolve data-URI-image-extraction regression from v7.3.0 affecting
87+
builders without native support for data-URIs in their output format.
88+
Patch by James Addison.
89+
* #12494: Fix invalid genindex.html file produced with translated docs
90+
(regression in 7.1.0).
91+
Patch by Nicolas Peugnet.
6492
* #11961: Omit anchor references from document title entries in the search index,
6593
removing duplication of search results.
6694
Patch by James Addison.
6795

68-
Improvements
69-
------------
70-
71-
* #12387: Improve CLI progress message, when copying assets.
72-
Patch by Bénédikt Tran.
73-
* #12422: Do not duplicate "navigation" in aria-label of built-in themes.
74-
Patch by Thomas Weißschuh
75-
* #12421: Include project name in ``logo_alt`` of built-in themes.
76-
Patch by Thomas Weißschuh
77-
7896
Testing
7997
-------
8098

EXAMPLES.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Documentation using the classic theme
6464
* `DEAP <https://deap.readthedocs.io/>`__ (customized)
6565
* `Director <https://pythonhosted.org/director/>`__
6666
* `EZ-Draw <https://pageperso.lis-lab.fr/~edouard.thiel/ez-draw/doc/en/html/ez-manual.html>`__ (customized)
67-
* `Generic Mapping Tools (GMT) <https://gmt.soest.hawaii.edu/doc/latest/>`__ (customized)
67+
* `Generic Mapping Tools (GMT) <https://docs.generic-mapping-tools.org/latest/>`__ (customized)
6868
* `Genomedata <https://noble.gs.washington.edu/proj/genomedata/doc/1.3.3/>`__
6969
* `GetFEM <https://getfem.org/>`__ (customized)
7070
* `Glasgow Haskell Compiler <https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/>`__ (customized)
@@ -73,7 +73,7 @@ Documentation using the classic theme
7373
* `GSL Shell <https://www.nongnu.org/gsl-shell/>`__
7474
* `Hands-on Python Tutorial <http://anh.cs.luc.edu:80/python/hands-on/3.1/handsonHtml/>`__
7575
* `Kaa <https://freevo.github.io/kaa-base/>`__ (customized)
76-
* `Leo <https://leoeditor.com/>`__ (customized)
76+
* `Leo <https://leo-editor.github.io/leo-editor/>`__ (customized)
7777
* `Mayavi <https://docs.enthought.com/mayavi/mayavi/>`__ (customized)
7878
* `MediaGoblin <https://mediagoblin.readthedocs.io/>`__ (customized)
7979
* `mpmath <https://mpmath.org/doc/current/>`__
@@ -91,10 +91,10 @@ Documentation using the classic theme
9191
* `Python 2 <https://docs.python.org/2/>`__
9292
* `Python 3 <https://docs.python.org/3/>`__ (customized)
9393
* `Python Packaging Authority <https://www.pypa.io/>`__ (customized)
94-
* `Ring programming language <https://ring-lang.sourceforge.net/doc/>`__ (customized)
94+
* `Ring programming language <https://ring-lang.github.io/doc1.20/>`__ (customized)
9595
* `SageMath <https://doc.sagemath.org/>`__ (customized)
9696
* `Segway <https://noble.gs.washington.edu/proj/segway/doc/1.1.0/segway.html>`__
97-
* `simuPOP <https://simupop.sourceforge.net/manual_release/build/userGuide.html>`__ (customized)
97+
* `simuPOP <https://bopeng.github.io/simuPOP/>`__ (customized)
9898
* `SymPy <https://docs.sympy.org/>`__
9999
* `TurboGears <https://turbogears.readthedocs.io/>`__ (customized)
100100
* `tvtk <https://docs.enthought.com/mayavi/tvtk/>`__
@@ -120,7 +120,6 @@ Documentation using the sphinxdoc theme
120120
* `Python Wild Magic <https://vmlaker.github.io/pythonwildmagic/>`__ (customized)
121121
* `RDKit <https://www.rdkit.org/docs/>`__
122122
* `Reteisi <https://www.reteisi.org/contents.html>`__ (customized)
123-
* `Sqlkit <https://sqlkit.argolinux.org/>`__ (customized)
124123
* `Turbulenz <http://docs.turbulenz.com/>`__
125124

126125
Documentation using the nature theme
@@ -183,7 +182,7 @@ Documentation using sphinx_rtd_theme
183182
* `DNF <https://dnf.readthedocs.io/>`__
184183
* `Distro Tracker <https://qa.pages.debian.net/distro-tracker/>`__
185184
* `Django-cas-ng <https://djangocas.dev/docs/>`__
186-
* `dj-stripe <https://dj-stripe.readthedocs.io/>`__
185+
* `dj-stripe <https://dj-stripe.github.io/dj-stripe/>`__
187186
* `edX <https://docs.edx.org/>`__
188187
* `Electrum <https://docs.electrum.org/>`__
189188
* `ESWP3 <https://eswp3.readthedocs.io/>`__
@@ -262,7 +261,7 @@ Documentation using sphinx_rtd_theme
262261
* `Releases Sphinx extension <https://releases.readthedocs.io/>`__
263262
* `Qtile <https://docs.qtile.org/>`__
264263
* `Quex <https://quex.sourceforge.net/doc/html/main.html>`__
265-
* `QuTiP <https://qutip.org/docs/latest/>`__
264+
* `QuTiP <https://qutip.readthedocs.io/en/latest/>`__
266265
* `Sawtooth <https://sawtooth.splinter.dev/docs>`__
267266
* `Scapy <https://scapy.readthedocs.io/>`__
268267
* `SimGrid <https://simgrid.org/doc/latest/>`__

doc/_static/more.png

-1.32 KB
Binary file not shown.

doc/_themes/sphinx13/layout.html

Lines changed: 57 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
{% endblock %}
1010

1111
{% block header %}
12+
{{ svgs() }}
1213
<div class="pageheader">
1314
<div class="brand">
1415
<a href="{{ pathto(root_doc)|e }}">
@@ -18,7 +19,7 @@ <h1>Sphinx</h1>
1819
</div>
1920
<div class="icons">
2021
<a href="https://github.com/sphinx-doc/sphinx" title="{{ _('Source Code') }}" target="_blank">
21-
{{ github_icon() }}
22+
<svg><use href="#github"></use></svg>
2223
</a>
2324
</div>
2425
</div>
@@ -54,6 +55,7 @@ <h3>{{ _('On this page') }}</h3>
5455
{%- block document %}
5556
<div class="body" role="main">
5657
{% block body %}{% endblock %}
58+
{{ prev_next() }}
5759
</div>
5860
{%- endblock %}
5961
</div>
@@ -68,17 +70,59 @@ <h3>{{ _('On this page') }}</h3>
6870
</div>
6971
{%- endblock %}
7072

71-
{% macro github_icon() %}
73+
{% macro prev_next() %}
74+
<div class="related-pages" role="navigation" aria-label="Related">
75+
{% if prev -%}
76+
<a class="prev-page" href="{{ prev.link }}">
77+
<svg><use href="#svg-arrow-right"></use></svg>
78+
<div class="page-info">
79+
<div class="context">
80+
<span>{{ _("Previous") }}</span>
81+
</div>
82+
{% if prev.link == pathto(root_doc) %}
83+
<div class="title">{{ _("Home") }}</div>
84+
{% else %}
85+
<div class="title">{{ prev.title }}</div>
86+
{% endif %}
87+
</div>
88+
</a>
89+
{%- else %}
90+
<div></div>
91+
{%- endif %}
92+
{% if next -%}
93+
<a class="next-page" href="{{ next.link }}">
94+
<div class="page-info">
95+
<div class="context">
96+
<span>{{ _("Next") }}</span>
97+
</div>
98+
<div class="title">{{ next.title }}</div>
99+
</div>
100+
<svg><use href="#svg-arrow-right"></use></svg>
101+
</a>
102+
{%- endif %}
103+
</div>
104+
{% endmacro %}
105+
106+
{% macro svgs() %}
107+
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
108+
<symbol id="github" viewBox="0 0 16 16">
109+
<title>GitHub</title>
72110
<svg
73-
stroke="currentColor"
74-
fill="currentColor"
75-
stroke-width="0"
76-
viewBox="0 0 16 16"
77-
class="gh-source"
78-
>
79-
<path
80-
fill-rule="evenodd"
81-
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"
82-
></path>
83-
</svg>
111+
stroke="currentColor"
112+
fill="currentColor"
113+
stroke-width="0"
114+
viewBox="0 0 16 16"
115+
>
116+
<path
117+
fill-rule="evenodd"
118+
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"
119+
></path>
120+
</svg>
121+
<symbol id="svg-arrow-right" viewBox="0 0 24 24">
122+
<title>Expand</title>
123+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather-chevron-right">
124+
<polyline points="9 18 15 12 9 6"></polyline>
125+
</svg>
126+
</symbol>
127+
</svg>
84128
{% endmacro %}

0 commit comments

Comments
 (0)