Sphinx 7.4.1__py3-none-any.whl → 7.4.3__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/config.py +7 -3
- sphinx/environment/__init__.py +1 -1
- sphinx/registry.py +6 -2
- {sphinx-7.4.1.dist-info → sphinx-7.4.3.dist-info}/METADATA +1 -1
- {sphinx-7.4.1.dist-info → sphinx-7.4.3.dist-info}/RECORD +9 -9
- {sphinx-7.4.1.dist-info → sphinx-7.4.3.dist-info}/LICENSE.rst +0 -0
- {sphinx-7.4.1.dist-info → sphinx-7.4.3.dist-info}/WHEEL +0 -0
- {sphinx-7.4.1.dist-info → sphinx-7.4.3.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__ = '7.4.
|
|
3
|
+
__version__ = '7.4.3'
|
|
4
4
|
__display_version__ = __version__ # used for command line version
|
|
5
5
|
|
|
6
6
|
# Keep this file executable as-is in Python 3!
|
|
@@ -27,7 +27,7 @@ warnings.filterwarnings(
|
|
|
27
27
|
#:
|
|
28
28
|
#: .. versionadded:: 1.2
|
|
29
29
|
#: Before version 1.2, check the string ``sphinx.__version__``.
|
|
30
|
-
version_info = (7, 4,
|
|
30
|
+
version_info = (7, 4, 3, 'final', 0)
|
|
31
31
|
|
|
32
32
|
package_dir = os.path.abspath(os.path.dirname(__file__))
|
|
33
33
|
|
sphinx/config.py
CHANGED
|
@@ -582,13 +582,17 @@ def convert_source_suffix(app: Sphinx, config: Config) -> None:
|
|
|
582
582
|
# The default filetype is determined on later step.
|
|
583
583
|
# By default, it is considered as restructuredtext.
|
|
584
584
|
config.source_suffix = {source_suffix: 'restructuredtext'}
|
|
585
|
+
logger.info(__("Converting `source_suffix = %r` to `source_suffix = %r`."),
|
|
586
|
+
source_suffix, config.source_suffix)
|
|
585
587
|
elif isinstance(source_suffix, (list, tuple)):
|
|
586
588
|
# if list, considers as all of them are default filetype
|
|
587
589
|
config.source_suffix = dict.fromkeys(source_suffix, 'restructuredtext')
|
|
590
|
+
logger.info(__("Converting `source_suffix = %r` to `source_suffix = %r`."),
|
|
591
|
+
source_suffix, config.source_suffix)
|
|
588
592
|
elif not isinstance(source_suffix, dict):
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
593
|
+
msg = __("The config value `source_suffix' expects a dictionary,"
|
|
594
|
+
"a string, or a list of strings. Got `%r' instead (type %s).")
|
|
595
|
+
raise ConfigError(msg % (source_suffix, type(source_suffix)))
|
|
592
596
|
|
|
593
597
|
|
|
594
598
|
def convert_highlight_options(app: Sphinx, config: Config) -> None:
|
sphinx/environment/__init__.py
CHANGED
sphinx/registry.py
CHANGED
|
@@ -504,10 +504,14 @@ def merge_source_suffix(app: Sphinx, config: Config) -> None:
|
|
|
504
504
|
for suffix, filetype in app.registry.source_suffix.items():
|
|
505
505
|
if suffix not in app.config.source_suffix: # NoQA: SIM114
|
|
506
506
|
app.config.source_suffix[suffix] = filetype
|
|
507
|
-
elif app.config.source_suffix[suffix]
|
|
508
|
-
# filetype is not specified (default filetype).
|
|
507
|
+
elif app.config.source_suffix[suffix] == 'restructuredtext':
|
|
508
|
+
# The filetype is not specified (default filetype).
|
|
509
509
|
# So it overrides default filetype by extensions setting.
|
|
510
510
|
app.config.source_suffix[suffix] = filetype
|
|
511
|
+
elif app.config.source_suffix[suffix] is None:
|
|
512
|
+
msg = __('`None` is not a valid filetype for %r.') % suffix
|
|
513
|
+
logger.warning(msg)
|
|
514
|
+
app.config.source_suffix[suffix] = filetype
|
|
511
515
|
|
|
512
516
|
# copy config.source_suffix to registry
|
|
513
517
|
app.registry.source_suffix = app.config.source_suffix
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
sphinx/__init__.py,sha256=
|
|
1
|
+
sphinx/__init__.py,sha256=yHiprJSiTyxDdQrMU1sRfPUr6-4sbs698kAwfh1gHN0,1690
|
|
2
2
|
sphinx/__main__.py,sha256=wIifwXlZHdi4gtQmkJ6KF0BsflvD9o0Wd5nARTdJc8A,127
|
|
3
3
|
sphinx/addnodes.py,sha256=EQTIi9Zta6DaNa-2WGE3l9AVjdp7WzwwrfwRnax8vXE,18707
|
|
4
4
|
sphinx/application.py,sha256=5QXM7tYRt1s4q00GHPtAK2EIxu6G_UkzMB3MOKOkuUI,57793
|
|
5
|
-
sphinx/config.py,sha256=
|
|
5
|
+
sphinx/config.py,sha256=8q1CB3Yr4LXrYqOyiw_OUxLsTaWjihONrOyLnNQ3_9g,31179
|
|
6
6
|
sphinx/deprecation.py,sha256=ABIo1t4mSwCTT2uxpUKNcwQHb3X6qur_tziCWzIhqtE,2437
|
|
7
7
|
sphinx/errors.py,sha256=mFyE7P1fmnVTeYtpP3wv8oXrKyTw1H0WcE46VypUPd0,3412
|
|
8
8
|
sphinx/events.py,sha256=zb0K0Mq2a_MRr6lwLaD8ODhUnASd16vmYI8rKc_g-KY,4383
|
|
@@ -14,7 +14,7 @@ sphinx/parsers.py,sha256=86Yn9xUBWWe8FxvDf1_BlEzqvSDZ8AMFeYJCbx7AtMQ,3179
|
|
|
14
14
|
sphinx/project.py,sha256=t8mzAJgG6nvYFbm94VMik4PuCd3YAN4lux9-EZV981M,4389
|
|
15
15
|
sphinx/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
sphinx/pygments_styles.py,sha256=0RJn6WC7rPnQu7BDqrqb0gkJcb3elRfizGVBW9bcmRE,2861
|
|
17
|
-
sphinx/registry.py,sha256=
|
|
17
|
+
sphinx/registry.py,sha256=RQoHNd0VaHEFD3fGBbELJlNuVsEhTDi0jqNnBdO8eyY,22826
|
|
18
18
|
sphinx/roles.py,sha256=mTnbo0R6w5V9wlOmx2BU4P0MnpSj0csE9zeEdqT06zs,16966
|
|
19
19
|
sphinx/theming.py,sha256=M9fQgECyQevHffOUZFR9MVHg0IHWv18TDSx8UVvTP_U,20312
|
|
20
20
|
sphinx/versioning.py,sha256=IlROZblXuBBJGLgQkcuCiWa4DNDm3iNUrvHmzayASps,6240
|
|
@@ -73,7 +73,7 @@ sphinx/domains/python/__init__.py,sha256=mWEy28rgBrk1hBGoN5SOTw9PptIg58ghby_1iuL
|
|
|
73
73
|
sphinx/domains/python/_annotations.py,sha256=bLay4nHo1L7KxfX2exE2ttTLqwOnMBDVEg7r6v_YeSY,22302
|
|
74
74
|
sphinx/domains/python/_object.py,sha256=5DjvYfjQwmJToudJQNSogfP4LIAMU8fp6rd-Xe6nhzY,17011
|
|
75
75
|
sphinx/domains/std/__init__.py,sha256=gXNUycqNBSeFBXg89WStSk9pZsvaS6BuDtTBee-DWoM,49514
|
|
76
|
-
sphinx/environment/__init__.py,sha256
|
|
76
|
+
sphinx/environment/__init__.py,sha256=8078TrLXUERa0RbBBLZxwPDndYqhqTZNrwlL2zwzj6A,32545
|
|
77
77
|
sphinx/environment/adapters/__init__.py,sha256=VnDotW2UbxjWeVITmz7iTsVrzqQcvmLHr3euKqqKHwo,34
|
|
78
78
|
sphinx/environment/adapters/asset.py,sha256=huGHWMReM80cD9b88thQeqvJZG3G6BCnG_DY2uIZt0Q,418
|
|
79
79
|
sphinx/environment/adapters/indexentries.py,sha256=v_U51MZyYgkwVcFG0cCVICwSJALjlIxFHCpcxg2Nqbs,8926
|
|
@@ -584,8 +584,8 @@ sphinx/writers/manpage.py,sha256=iLoC4i81W52dTl8Kpug65CV1M7cCz1buGgsN7FhazYo,162
|
|
|
584
584
|
sphinx/writers/texinfo.py,sha256=UU3Zrt-zBgdwYgqj4BJFNthggzMr_Gllx2ewBeWrkcI,53451
|
|
585
585
|
sphinx/writers/text.py,sha256=HEiYXsWXO9QVOazg2V3D0ehGTnK38dAtYP9v0rst684,42964
|
|
586
586
|
sphinx/writers/xml.py,sha256=NyDl82hCFSRiHrCZV6vBfn4AsAyXH6khtSJEfhOX8a0,1502
|
|
587
|
-
sphinx-7.4.
|
|
588
|
-
sphinx-7.4.
|
|
589
|
-
sphinx-7.4.
|
|
590
|
-
sphinx-7.4.
|
|
591
|
-
sphinx-7.4.
|
|
587
|
+
sphinx-7.4.3.dist-info/entry_points.txt,sha256=KU_c9jqXj7yyZylSz11XRIXG3gAZApQa0d5DmcfyA7M,188
|
|
588
|
+
sphinx-7.4.3.dist-info/LICENSE.rst,sha256=HdZPUFcmQaLySBc9fKvRC5aOUNkxL9Gz5py0p6XGDk4,3135
|
|
589
|
+
sphinx-7.4.3.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
|
590
|
+
sphinx-7.4.3.dist-info/METADATA,sha256=HdBXZsmIiSOmuAviGIzMMQGQPj_8yMS9Y2rZq7EA-S8,6113
|
|
591
|
+
sphinx-7.4.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|