mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Close #9623: Allow to suppress warnings on excluded document found in toctree
This commit is contained in:
parent
5c4f741fff
commit
ca146ac18b
3
CHANGES
3
CHANGES
@ -13,6 +13,9 @@ Deprecated
|
|||||||
Features added
|
Features added
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
* #9623: Allow to suppress "toctree contains reference to excluded document"
|
||||||
|
warnings using :confval:`suppress_warnings`
|
||||||
|
|
||||||
Bugs fixed
|
Bugs fixed
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
@ -329,6 +329,7 @@ General configuration
|
|||||||
* ``ref.python``
|
* ``ref.python``
|
||||||
* ``misc.highlighting_failure``
|
* ``misc.highlighting_failure``
|
||||||
* ``toc.circular``
|
* ``toc.circular``
|
||||||
|
* ``toc.not_readable``
|
||||||
* ``toc.secnum``
|
* ``toc.secnum``
|
||||||
* ``epub.unknown_project_files``
|
* ``epub.unknown_project_files``
|
||||||
* ``epub.duplicated_toc_entry``
|
* ``epub.duplicated_toc_entry``
|
||||||
|
@ -132,7 +132,8 @@ class TocTree(SphinxDirective):
|
|||||||
else:
|
else:
|
||||||
message = __('toctree contains reference to nonexisting document %r')
|
message = __('toctree contains reference to nonexisting document %r')
|
||||||
|
|
||||||
logger.warning(message, docname, location=toctree)
|
logger.warning(message, docname, type='toc', subtype='not_readable',
|
||||||
|
location=toctree)
|
||||||
self.env.note_reread()
|
self.env.note_reread()
|
||||||
else:
|
else:
|
||||||
if docname in all_docnames:
|
if docname in all_docnames:
|
||||||
|
Loading…
Reference in New Issue
Block a user