Skip to content

Commit 32aa1dd

Browse files
committed
Address review comments
1 parent ae344eb commit 32aa1dd

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

AUTHORS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Contributors
9696
* \A. Rafey Khan -- improved intersphinx typing
9797
* Roland Meister -- epub builder
9898
* Sebastian Wiesner -- image handling, distutils support
99+
* Slawek Figiel -- additional warning suppression
99100
* Stefan Seefeld -- toctree improvements
100101
* Stefan van der Walt -- autosummary extension
101102
* \T. Powers -- HTML output improvements
@@ -106,7 +107,6 @@ Contributors
106107
* Vince Salvino -- JavaScript search improvements
107108
* Will Maier -- directory HTML builder
108109
* Zac Hatfield-Dodds -- doctest reporting improvements, intersphinx performance
109-
* Slawek Figiel -- additional warning suppression
110110

111111
Former maintainers
112112
==================

CHANGES.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Features added
3636
* #13146: Napoleon: Unify the type preprocessing logic to allow
3737
Google-style docstrings to use the optional and default keywords.
3838
Patch by Chris Barrick.
39-
* Add a subtype ``toc.glob_not_matching`` to a warning of a non-matching glob
40-
pattern in TOC.
39+
* Add the subtype ``toc.empty_glob`` to allow suppressing the warning of
40+
a non-matching glob pattern in TOC.
4141

4242
Bugs fixed
4343
----------

doc/usage/configuration.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,7 @@ Options for warning control
13971397
* ``toc.no_title``
13981398
* ``toc.not_readable``
13991399
* ``toc.secnum``
1400-
* ``toc.glob_not_matching``
1400+
* ``toc.empty_glob``
14011401

14021402
Extensions can also define their own warning types.
14031403
Those defined by the first-party ``sphinx.ext`` extensions are:
@@ -1448,8 +1448,10 @@ Options for warning control
14481448
Added ``misc.copy_overwrite``.
14491449

14501450
.. versionadded:: 8.2
1451-
Added ``duplicate_declaration.c`` and ``duplicate_declaration.cpp``, and
1452-
``toc.glob_not_matching``.
1451+
Added ``duplicate_declaration.c`` and ``duplicate_declaration.cpp``
1452+
1453+
.. versionadded:: 8.2
1454+
Added ``toc.empty_glob``.
14531455

14541456
Builder options
14551457
===============

sphinx/directives/other.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def parse_content(self, toctree: addnodes.toctree) -> None:
122122
__("toctree glob pattern %r didn't match any documents"),
123123
entry,
124124
location=toctree,
125-
subtype='glob_not_matching',
125+
subtype='empty_glob',
126126
)
127127

128128
for docname in doc_names:

0 commit comments

Comments
 (0)