mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #7410: Allow to suppress "circular toctree references detected" warnings
This commit is contained in:
parent
fd7c1d76b6
commit
10d7760156
3
CHANGES
3
CHANGES
@ -13,6 +13,9 @@ Deprecated
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #7410: Allow to suppress "circular toctree references detected" warnings using
|
||||
:confval:`suppress_warnings`
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
|
@ -313,6 +313,7 @@ General configuration
|
||||
* ``ref.doc``
|
||||
* ``ref.python``
|
||||
* ``misc.highlighting_failure``
|
||||
* ``toc.circular``
|
||||
* ``toc.secnum``
|
||||
* ``epub.unknown_project_files``
|
||||
* ``autosectionlabel.*``
|
||||
|
@ -153,7 +153,7 @@ class TocTree:
|
||||
logger.warning(__('circular toctree references '
|
||||
'detected, ignoring: %s <- %s'),
|
||||
ref, ' <- '.join(parents),
|
||||
location=ref)
|
||||
location=ref, type='toc', subtype='circular')
|
||||
continue
|
||||
refdoc = ref
|
||||
toc = self.env.tocs[ref].deepcopy()
|
||||
|
Loading…
Reference in New Issue
Block a user