Sphinx 8.1.1__py3-none-any.whl → 8.1.2__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/builders/__init__.py +28 -13
- sphinx/util/__init__.py +2 -0
- {sphinx-8.1.1.dist-info → sphinx-8.1.2.dist-info}/METADATA +2 -1
- {sphinx-8.1.1.dist-info → sphinx-8.1.2.dist-info}/RECORD +8 -8
- {sphinx-8.1.1.dist-info → sphinx-8.1.2.dist-info}/LICENSE.rst +0 -0
- {sphinx-8.1.1.dist-info → sphinx-8.1.2.dist-info}/WHEEL +0 -0
- {sphinx-8.1.1.dist-info → sphinx-8.1.2.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.2'
|
|
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, 2, 'final', 0)
|
|
34
34
|
|
|
35
35
|
package_dir = os.path.abspath(os.path.dirname(__file__))
|
|
36
36
|
|
sphinx/builders/__init__.py
CHANGED
|
@@ -59,14 +59,20 @@ class Builder:
|
|
|
59
59
|
Builds target formats from the reST sources.
|
|
60
60
|
"""
|
|
61
61
|
|
|
62
|
-
#: The builder's name
|
|
63
|
-
|
|
62
|
+
#: The builder's name.
|
|
63
|
+
#: This is the value used to select builders on the command line.
|
|
64
|
+
name: str = ''
|
|
64
65
|
#: The builder's output format, or '' if no document output is produced.
|
|
65
|
-
|
|
66
|
-
#:
|
|
67
|
-
#:
|
|
68
|
-
#:
|
|
69
|
-
|
|
66
|
+
#: This is commonly the file extension, e.g. "html",
|
|
67
|
+
#: though any string value is accepted.
|
|
68
|
+
#: The builder's format string can be used by various components
|
|
69
|
+
#: such as :class:`.SphinxPostTransform` or extensions to determine
|
|
70
|
+
#: their compatibility with the builder.
|
|
71
|
+
format: str = ''
|
|
72
|
+
#: The message emitted upon successful build completion.
|
|
73
|
+
#: This can be a printf-style template string
|
|
74
|
+
#: with the following keys: ``outdir``, ``project``
|
|
75
|
+
epilog: str = ''
|
|
70
76
|
|
|
71
77
|
#: default translator class for the builder. This can be overridden by
|
|
72
78
|
#: :py:meth:`~sphinx.application.Sphinx.set_translator`.
|
|
@@ -74,8 +80,8 @@ class Builder:
|
|
|
74
80
|
# doctree versioning method
|
|
75
81
|
versioning_method = 'none'
|
|
76
82
|
versioning_compare = False
|
|
77
|
-
#:
|
|
78
|
-
allow_parallel = False
|
|
83
|
+
#: Whether it is safe to make parallel :meth:`~.Builder.write_doc()` calls.
|
|
84
|
+
allow_parallel: bool = False
|
|
79
85
|
# support translation
|
|
80
86
|
use_message_catalog = True
|
|
81
87
|
|
|
@@ -83,9 +89,9 @@ class Builder:
|
|
|
83
89
|
#: Image files are searched in the order in which they appear here.
|
|
84
90
|
supported_image_types: list[str] = []
|
|
85
91
|
#: The builder can produce output documents that may fetch external images when opened.
|
|
86
|
-
supported_remote_images = False
|
|
92
|
+
supported_remote_images: bool = False
|
|
87
93
|
#: The file format produced by the builder allows images to be embedded using data-URIs.
|
|
88
|
-
supported_data_uri_images = False
|
|
94
|
+
supported_data_uri_images: bool = False
|
|
89
95
|
|
|
90
96
|
def __init__(self, app: Sphinx, env: BuildEnvironment) -> None:
|
|
91
97
|
self.srcdir = app.srcdir
|
|
@@ -159,7 +165,7 @@ class Builder:
|
|
|
159
165
|
def get_relative_uri(self, from_: str, to: str, typ: str | None = None) -> str:
|
|
160
166
|
"""Return a relative URI between two source filenames.
|
|
161
167
|
|
|
162
|
-
|
|
168
|
+
:raises: :exc:`!NoUri` if there's no way to return a sensible URI.
|
|
163
169
|
"""
|
|
164
170
|
return relative_uri(
|
|
165
171
|
self.get_target_uri(from_),
|
|
@@ -789,7 +795,16 @@ class Builder:
|
|
|
789
795
|
pass
|
|
790
796
|
|
|
791
797
|
def write_doc(self, docname: str, doctree: nodes.document) -> None:
|
|
792
|
-
"""
|
|
798
|
+
"""
|
|
799
|
+
Write the output file for the document
|
|
800
|
+
|
|
801
|
+
:param docname: the :term:`docname <document name>`.
|
|
802
|
+
:param doctree: defines the content to be written.
|
|
803
|
+
|
|
804
|
+
The output filename must be determined within this method,
|
|
805
|
+
typically by calling :meth:`~.Builder.get_target_uri`
|
|
806
|
+
or :meth:`~.Builder.get_relative_uri`.
|
|
807
|
+
"""
|
|
793
808
|
raise NotImplementedError
|
|
794
809
|
|
|
795
810
|
def write_doc_serialized(self, docname: str, doctree: nodes.document) -> None:
|
sphinx/util/__init__.py
CHANGED
|
@@ -8,6 +8,7 @@ import posixpath
|
|
|
8
8
|
import re
|
|
9
9
|
from typing import Any
|
|
10
10
|
|
|
11
|
+
from sphinx.errors import ExtensionError as _ExtensionError
|
|
11
12
|
from sphinx.errors import FiletypeNotFoundError
|
|
12
13
|
from sphinx.util import _files, _importer, logging
|
|
13
14
|
from sphinx.util import index_entries as _index_entries
|
|
@@ -86,6 +87,7 @@ _DEPRECATED_OBJECTS: dict[str, tuple[Any, str, tuple[int, int]]] = {
|
|
|
86
87
|
'sphinx.util.index_entries.split_into',
|
|
87
88
|
(9, 0),
|
|
88
89
|
),
|
|
90
|
+
'ExtensionError': (_ExtensionError, 'sphinx.errors.ExtensionError', (9, 0)),
|
|
89
91
|
'md5': (_md5, '', (9, 0)),
|
|
90
92
|
'sha1': (_sha1, '', (9, 0)),
|
|
91
93
|
'import_object': (_importer.import_object, '', (10, 0)),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: Sphinx
|
|
3
|
-
Version: 8.1.
|
|
3
|
+
Version: 8.1.2
|
|
4
4
|
Summary: Python documentation generator
|
|
5
5
|
Author-email: Georg Brandl <georg@python.org>
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -80,6 +80,7 @@ Requires-Dist: setuptools>=70.0 ; extra == "test"
|
|
|
80
80
|
Requires-Dist: typing_extensions>=4.9 ; extra == "test"
|
|
81
81
|
Project-URL: Changelog, https://www.sphinx-doc.org/en/master/changes.html
|
|
82
82
|
Project-URL: Code, https://github.com/sphinx-doc/sphinx
|
|
83
|
+
Project-URL: Documentation, https://www.sphinx-doc.org/
|
|
83
84
|
Project-URL: Download, https://pypi.org/project/Sphinx/
|
|
84
85
|
Project-URL: Homepage, https://www.sphinx-doc.org/
|
|
85
86
|
Project-URL: Issue tracker, https://github.com/sphinx-doc/sphinx/issues
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
sphinx/__init__.py,sha256
|
|
1
|
+
sphinx/__init__.py,sha256=-2svNZt_Ib-y3gkKkZ3ti6x3Qn-WSHESCMrFZgyxPhA,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
|
|
@@ -22,7 +22,7 @@ sphinx/_cli/__init__.py,sha256=AWTELmWU_5J7uiuNQYi1mQfH483Z0ZYeYonNdmb5O9A,9982
|
|
|
22
22
|
sphinx/_cli/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
23
|
sphinx/_cli/util/colour.py,sha256=M04FGs_3Dpet0SmIyRg8I7gKbta8mfAGMObocgZX5N8,2997
|
|
24
24
|
sphinx/_cli/util/errors.py,sha256=_3YWZbr0vItrMcZ0zsLr2IqaCEEkJf4lmNhKO7AH5UI,4852
|
|
25
|
-
sphinx/builders/__init__.py,sha256=
|
|
25
|
+
sphinx/builders/__init__.py,sha256=0lDANXVqejGXYL0dF1BPy0IzJ_FUHPUWEMt7dwhMpvs,32542
|
|
26
26
|
sphinx/builders/_epub_base.py,sha256=-FGIGZ-4Cu3KWqeb2QfprBKl6x7REt5i4uJvBEwZVeE,29848
|
|
27
27
|
sphinx/builders/changes.py,sha256=Izkn2P-EZnMtEn3LXes8ho2SvY7XrUaPBdJVjaUGejk,6958
|
|
28
28
|
sphinx/builders/dirhtml.py,sha256=knJB8YAxmOj4mOx5AWpqbDxs-QVPJpZpsjuEvRzAdqg,1552
|
|
@@ -545,7 +545,7 @@ sphinx/transforms/references.py,sha256=AyYHJcv4mPfrCdD7kKn-2oLSP8oxh6GJ8rjgahVYB
|
|
|
545
545
|
sphinx/transforms/post_transforms/__init__.py,sha256=zIroXaSf1wQb31I71TqaaQIZjW7ZbMicNuU0RC0WvBg,13086
|
|
546
546
|
sphinx/transforms/post_transforms/code.py,sha256=1jUfLRdmoHJkMFbAvyY4XD5CBghZUTAouQydA_ttCk0,4496
|
|
547
547
|
sphinx/transforms/post_transforms/images.py,sha256=qpUVLkjlSKzb_IzKoRXTc_Xxn6OnwizJrg45QmEb4QU,10790
|
|
548
|
-
sphinx/util/__init__.py,sha256=
|
|
548
|
+
sphinx/util/__init__.py,sha256=nTGTyMcQhKYmu2kRLZNr23UwrYjKR7Fkef71jx0Wt9c,3333
|
|
549
549
|
sphinx/util/_files.py,sha256=iKEaNsz9mxspOX_F1XLmsVdBssSlCxcizTsNVdmVgaQ,2666
|
|
550
550
|
sphinx/util/_importer.py,sha256=qqQWn2TAGY6FS0WJ8aDjFnUdhadDX7hVavJYEs_CAZo,885
|
|
551
551
|
sphinx/util/_io.py,sha256=-KaagsRCwlKg8lpHJBf3KqCc_GD8r8BDS_veph3VTrA,894
|
|
@@ -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.2.dist-info/entry_points.txt,sha256=KU_c9jqXj7yyZylSz11XRIXG3gAZApQa0d5DmcfyA7M,188
|
|
595
|
+
sphinx-8.1.2.dist-info/LICENSE.rst,sha256=uL2etL9JJaDLeIqs1Hm7ZNqo4AsoMO_3WiFzvc2zuu0,1476
|
|
596
|
+
sphinx-8.1.2.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
|
597
|
+
sphinx-8.1.2.dist-info/METADATA,sha256=6ugdNy7jnGR7NieWOrHSorAi9wvBaZwwwoZrl31OQfk,6407
|
|
598
|
+
sphinx-8.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|