Sphinx 8.1.0__py3-none-any.whl → 8.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of Sphinx might be problematic. Click here for more details.
- sphinx/__init__.py +2 -2
- sphinx/environment/__init__.py +0 -4
- sphinx/roles.py +9 -6
- sphinx/texinputs/sphinx.sty +9 -12
- sphinx/texinputs/sphinxlatexadmonitions.sty +6 -4
- {sphinx-8.1.0.dist-info → sphinx-8.1.1.dist-info}/METADATA +1 -1
- {sphinx-8.1.0.dist-info → sphinx-8.1.1.dist-info}/RECORD +10 -10
- {sphinx-8.1.0.dist-info → sphinx-8.1.1.dist-info}/LICENSE.rst +0 -0
- {sphinx-8.1.0.dist-info → sphinx-8.1.1.dist-info}/WHEEL +0 -0
- {sphinx-8.1.0.dist-info → sphinx-8.1.1.dist-info}/entry_points.txt +0 -0
sphinx/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""The Sphinx documentation toolchain."""
|
|
2
2
|
|
|
3
|
-
__version__ = '8.1.
|
|
3
|
+
__version__ = '8.1.1'
|
|
4
4
|
__display_version__ = __version__ # used for command line version
|
|
5
5
|
|
|
6
6
|
# Keep this file executable as-is in Python 3!
|
|
@@ -30,7 +30,7 @@ warnings.filterwarnings(
|
|
|
30
30
|
#:
|
|
31
31
|
#: .. versionadded:: 1.2
|
|
32
32
|
#: Before version 1.2, check the string ``sphinx.__version__``.
|
|
33
|
-
version_info = (8, 1,
|
|
33
|
+
version_info = (8, 1, 1, 'final', 0)
|
|
34
34
|
|
|
35
35
|
package_dir = os.path.abspath(os.path.dirname(__file__))
|
|
36
36
|
|
sphinx/environment/__init__.py
CHANGED
|
@@ -54,10 +54,6 @@ default_settings: dict[str, Any] = {
|
|
|
54
54
|
'image_loading': 'link',
|
|
55
55
|
'embed_stylesheet': False,
|
|
56
56
|
'cloak_email_addresses': True,
|
|
57
|
-
'cve_base_url': 'https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-',
|
|
58
|
-
'cve_references': None,
|
|
59
|
-
'cwe_base_url': 'https://cwe.mitre.org/data/definitions/',
|
|
60
|
-
'cwe_references': None,
|
|
61
57
|
'pep_base_url': 'https://peps.python.org/',
|
|
62
58
|
'pep_references': None,
|
|
63
59
|
'rfc_base_url': 'https://datatracker.ietf.org/doc/html/',
|
sphinx/roles.py
CHANGED
|
@@ -17,6 +17,7 @@ from sphinx.util.docutils import ReferenceRole, SphinxRole
|
|
|
17
17
|
|
|
18
18
|
if TYPE_CHECKING:
|
|
19
19
|
from collections.abc import Sequence
|
|
20
|
+
from typing import Final
|
|
20
21
|
|
|
21
22
|
from docutils.nodes import Element, Node, TextElement, system_message
|
|
22
23
|
|
|
@@ -197,6 +198,8 @@ class AnyXRefRole(XRefRole):
|
|
|
197
198
|
|
|
198
199
|
|
|
199
200
|
class CVE(ReferenceRole):
|
|
201
|
+
_BASE_URL: Final = 'https://www.cve.org/CVERecord?id=CVE-'
|
|
202
|
+
|
|
200
203
|
def run(self) -> tuple[list[Node], list[system_message]]:
|
|
201
204
|
target_id = f'index-{self.env.new_serialno("index")}'
|
|
202
205
|
entries = [
|
|
@@ -233,14 +236,15 @@ class CVE(ReferenceRole):
|
|
|
233
236
|
return [index, target, reference], []
|
|
234
237
|
|
|
235
238
|
def build_uri(self) -> str:
|
|
236
|
-
base_url = self.inliner.document.settings.cve_base_url
|
|
237
239
|
ret = self.target.split('#', 1)
|
|
238
240
|
if len(ret) == 2:
|
|
239
|
-
return f'{
|
|
240
|
-
return f'{
|
|
241
|
+
return f'{CVE._BASE_URL}{ret[0]}#{ret[1]}'
|
|
242
|
+
return f'{CVE._BASE_URL}{ret[0]}'
|
|
241
243
|
|
|
242
244
|
|
|
243
245
|
class CWE(ReferenceRole):
|
|
246
|
+
_BASE_URL: Final = 'https://cwe.mitre.org/data/definitions/'
|
|
247
|
+
|
|
244
248
|
def run(self) -> tuple[list[Node], list[system_message]]:
|
|
245
249
|
target_id = f'index-{self.env.new_serialno("index")}'
|
|
246
250
|
entries = [
|
|
@@ -277,11 +281,10 @@ class CWE(ReferenceRole):
|
|
|
277
281
|
return [index, target, reference], []
|
|
278
282
|
|
|
279
283
|
def build_uri(self) -> str:
|
|
280
|
-
base_url = self.inliner.document.settings.cwe_base_url
|
|
281
284
|
ret = self.target.split('#', 1)
|
|
282
285
|
if len(ret) == 2:
|
|
283
|
-
return f'{
|
|
284
|
-
return f'{
|
|
286
|
+
return f'{CWE._BASE_URL}{int(ret[0])}.html#{ret[1]}'
|
|
287
|
+
return f'{CWE._BASE_URL}{int(ret[0])}.html'
|
|
285
288
|
|
|
286
289
|
|
|
287
290
|
class PEP(ReferenceRole):
|
sphinx/texinputs/sphinx.sty
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
% by the Sphinx LaTeX writer.
|
|
10
10
|
|
|
11
11
|
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
|
|
12
|
-
\ProvidesPackage{sphinx}[2024/
|
|
12
|
+
\ProvidesPackage{sphinx}[2024/10/11 v8.1.1 Sphinx LaTeX package (sphinx-doc)]
|
|
13
13
|
|
|
14
14
|
% provides \ltx@ifundefined
|
|
15
15
|
% (many packages load ltxcmds: graphicx does for pdftex and lualatex but
|
|
@@ -885,15 +885,12 @@
|
|
|
885
885
|
{\DeclareStringOption[fontawesome]{iconpackage}}
|
|
886
886
|
{\DeclareStringOption[none]{iconpackage}}%
|
|
887
887
|
}%
|
|
888
|
-
\newcommand\spx@faIcon[
|
|
889
|
-
% The
|
|
890
|
-
%
|
|
891
|
-
%
|
|
892
|
-
%
|
|
893
|
-
%
|
|
894
|
-
% If user sets a title-icon key to some LaTeX code of their own, of course
|
|
895
|
-
% \spx@faIcon is not executed and the inserted space will thus be there, as
|
|
896
|
-
% expected.
|
|
888
|
+
\newcommand\spx@faIcon[2][]{}%
|
|
889
|
+
% The above \spx@faIcon which gobbles one mandatory and one optional
|
|
890
|
+
% argument is put into use only if both fontawesome5 and fontawesome
|
|
891
|
+
% LaTeX packages are not available, as part of the defaults for the
|
|
892
|
+
% div.*_title-icon keys (these keys can be redefined via the sphinxsetup
|
|
893
|
+
% interface).
|
|
897
894
|
%
|
|
898
895
|
\def\spxstring@fontawesome{fontawesome}
|
|
899
896
|
\def\spxstring@fontawesomev{fontawesome5}
|
|
@@ -920,8 +917,8 @@
|
|
|
920
917
|
\let\faicon@pen\faPencil
|
|
921
918
|
\fi
|
|
922
919
|
% if neither has been required, \spx@faIcon will simply swallow
|
|
923
|
-
% its argument
|
|
924
|
-
% to set the keys appropriately.
|
|
920
|
+
% its argument and it is up to user
|
|
921
|
+
% to set the various div.*_title-icon keys appropriately.
|
|
925
922
|
\fi\fi %
|
|
926
923
|
}%
|
|
927
924
|
{%
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
%% NOTICES AND ADMONITIONS
|
|
2
2
|
%
|
|
3
3
|
% change this info string if making any custom modification
|
|
4
|
-
\ProvidesPackage{sphinxlatexadmonitions}[2024/
|
|
4
|
+
\ProvidesPackage{sphinxlatexadmonitions}[2024/10/11 v8.1.1 admonitions]
|
|
5
5
|
|
|
6
6
|
% Provides support for this output mark-up from Sphinx latex writer:
|
|
7
7
|
%
|
|
@@ -341,9 +341,11 @@
|
|
|
341
341
|
\ifdim\wd\z@>\z@
|
|
342
342
|
\textcolor{sphinx#1TtlFgColor}{%
|
|
343
343
|
\@nameuse{sphinx#1TtlIcon}%
|
|
344
|
-
%
|
|
345
|
-
%
|
|
346
|
-
%
|
|
344
|
+
% The next macro is located here for legacy reasons of earlier
|
|
345
|
+
% functioning of \spx@faIcon. When fontawesome{5,}.sty both
|
|
346
|
+
% are unavailable, it (formerly) gobbled this next macro.
|
|
347
|
+
% We leave it here now although it could be moved to after
|
|
348
|
+
% the closing brace.
|
|
347
349
|
\sphinxtitlerowaftericonspacecmd
|
|
348
350
|
}%
|
|
349
351
|
\fi
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
sphinx/__init__.py,sha256=
|
|
1
|
+
sphinx/__init__.py,sha256=gv74Ri64G9lpcAck-AfWi5n5qoQljTm4j2PZzGL0XmE,1703
|
|
2
2
|
sphinx/__main__.py,sha256=wIifwXlZHdi4gtQmkJ6KF0BsflvD9o0Wd5nARTdJc8A,127
|
|
3
3
|
sphinx/addnodes.py,sha256=EQTIi9Zta6DaNa-2WGE3l9AVjdp7WzwwrfwRnax8vXE,18707
|
|
4
4
|
sphinx/application.py,sha256=j1EjhSnXce7HcgHeRGfDrhOuMCs2Ha-0TRfVMmq9SQ8,65788
|
|
@@ -15,7 +15,7 @@ sphinx/project.py,sha256=8jf0rDETXDA4_4pYNXfQ8dqLlKoKBQSe4SSGSgVHGbA,4570
|
|
|
15
15
|
sphinx/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
sphinx/pygments_styles.py,sha256=4ube8wmrKx-Luigixj-odhVb8RqDf_3R0u2Cgsqk8t4,2586
|
|
17
17
|
sphinx/registry.py,sha256=gphep-zWqZ4W_CpFbrnm18BDXTBRL4QzSVYHSdx0dBw,22898
|
|
18
|
-
sphinx/roles.py,sha256=
|
|
18
|
+
sphinx/roles.py,sha256=JLureyhoE67-zj7offy8WJpvpLPz2qWv-WFnqxUl08s,20944
|
|
19
19
|
sphinx/theming.py,sha256=nAu6quZhsM8jU1__BkT0xH_axwwDFVJKxDRxntnj3ag,19997
|
|
20
20
|
sphinx/versioning.py,sha256=pvzL18Sz0UMwixvGg65IneuaMNtmgl_cVSCQ4MxJ_vw,6246
|
|
21
21
|
sphinx/_cli/__init__.py,sha256=AWTELmWU_5J7uiuNQYi1mQfH483Z0ZYeYonNdmb5O9A,9982
|
|
@@ -76,7 +76,7 @@ sphinx/domains/python/__init__.py,sha256=K5-RSG0_u_hhvmKj9M_lN9JPgH8bIJ90LRdn93N
|
|
|
76
76
|
sphinx/domains/python/_annotations.py,sha256=cO7U8JvRcKX1CObNlZrO57UcuhfTNRnczOHmVZiMixo,23388
|
|
77
77
|
sphinx/domains/python/_object.py,sha256=DMEhPh_iOy5Cps637KVNuyuRDVBs1XFdWD99ujRRwJY,17018
|
|
78
78
|
sphinx/domains/std/__init__.py,sha256=m8yHdbEn75p7YcVzmJn8ihEcX8h-RPgKg7tjuUd1l_w,49494
|
|
79
|
-
sphinx/environment/__init__.py,sha256=
|
|
79
|
+
sphinx/environment/__init__.py,sha256=oTgkI2qqUOMw4EcuyZNMJJ66ILqPdYm0khqX-l_ikgs,32505
|
|
80
80
|
sphinx/environment/adapters/__init__.py,sha256=VnDotW2UbxjWeVITmz7iTsVrzqQcvmLHr3euKqqKHwo,34
|
|
81
81
|
sphinx/environment/adapters/asset.py,sha256=6-jxJqm8DcOJ0CIqPFal88m6New3aYHK3K0dWrrwy64,480
|
|
82
82
|
sphinx/environment/adapters/indexentries.py,sha256=nSfXBe47CoUzz26DEFb3RzewKVBbmv5S6kdmdbKeay4,9788
|
|
@@ -419,10 +419,10 @@ sphinx/texinputs/latexmkjarc.jinja,sha256=MAEuOfgjE56gBm5tt9pr3x1dLkaYQRVvtLKKOy
|
|
|
419
419
|
sphinx/texinputs/latexmkrc.jinja,sha256=CaSKfWWrcA-l0BMSxa8h3YFf-C_hMjsNs2fe5Z9XEwA,1104
|
|
420
420
|
sphinx/texinputs/make.bat.jinja,sha256=ZgR_dDOU01AT_VFmD4L97dbpTDSUGHksLjVfTmBj2gg,1041
|
|
421
421
|
sphinx/texinputs/python.ist,sha256=G47jS0AbTU91qQ7ZEo8qwX7rGAIiyyV1DlLPaO_wIVE,392
|
|
422
|
-
sphinx/texinputs/sphinx.sty,sha256=
|
|
422
|
+
sphinx/texinputs/sphinx.sty,sha256=8JY_4h7EZJV1RhH2H6KirI3zBH5w5_2q5vSl8mT0wDM,54119
|
|
423
423
|
sphinx/texinputs/sphinx.xdy,sha256=QWncK0Ie81AneS7M6R0kbOYv2tebzm1jluAXYnxS4b4,9475
|
|
424
424
|
sphinx/texinputs/sphinxhowto.cls,sha256=IzFjVXa79iEvsI5q4sUCEcdyYE2gMbXIh50gt9QYCI8,3256
|
|
425
|
-
sphinx/texinputs/sphinxlatexadmonitions.sty,sha256=
|
|
425
|
+
sphinx/texinputs/sphinxlatexadmonitions.sty,sha256=193TM6nSTdVQ2rNXgoFJukl1UoF5kh-Sil6AWozhobg,19110
|
|
426
426
|
sphinx/texinputs/sphinxlatexcontainers.sty,sha256=_j93wx3CLRDr5uMO7OOWaeCKHsDEN5h-K-0H9kgaNoU,900
|
|
427
427
|
sphinx/texinputs/sphinxlatexgraphics.sty,sha256=BGG4zRnsJ3w2d2OgWjhSHG5qOsOO9bmCjIHRv2rYUVY,4918
|
|
428
428
|
sphinx/texinputs/sphinxlatexindbibtoc.sty,sha256=Erde_bnrAsJBt42eQD3IZ_5L5iPmscXIDZ6mGRK6b6s,2065
|
|
@@ -591,8 +591,8 @@ sphinx/writers/manpage.py,sha256=R0S02xJ0YdDZ3IPh-8po5qHOPWy5bciiOpesGF9-yC8,163
|
|
|
591
591
|
sphinx/writers/texinfo.py,sha256=-b5PgRRuoGF51OS8Gbz3hV-iA-swjT2T552tb5Bkg_4,53082
|
|
592
592
|
sphinx/writers/text.py,sha256=jXEXXXCyFFLXGKatrdxipgX3cJP9Wc4-X01SQFmJAYo,43426
|
|
593
593
|
sphinx/writers/xml.py,sha256=5HXyJd1sRRzY3p3sE-_esSYlQjhtW9TU6yrRPv2Uoy0,1563
|
|
594
|
-
sphinx-8.1.
|
|
595
|
-
sphinx-8.1.
|
|
596
|
-
sphinx-8.1.
|
|
597
|
-
sphinx-8.1.
|
|
598
|
-
sphinx-8.1.
|
|
594
|
+
sphinx-8.1.1.dist-info/entry_points.txt,sha256=KU_c9jqXj7yyZylSz11XRIXG3gAZApQa0d5DmcfyA7M,188
|
|
595
|
+
sphinx-8.1.1.dist-info/LICENSE.rst,sha256=uL2etL9JJaDLeIqs1Hm7ZNqo4AsoMO_3WiFzvc2zuu0,1476
|
|
596
|
+
sphinx-8.1.1.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
|
597
|
+
sphinx-8.1.1.dist-info/METADATA,sha256=4RxAh6p0Rxqh34EiYp04xXnTTq8nAPd_fqHwX-31X6E,6351
|
|
598
|
+
sphinx-8.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|