Fix #7410: Allow to suppress "circular toctree references detected" warnings

This commit is contained in:
Takeshi KOMIYA 2020-04-11 19:05:04 +09:00
parent fd7c1d76b6
commit 10d7760156
3 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,9 @@ Deprecated
Features added
--------------
* #7410: Allow to suppress "circular toctree references detected" warnings using
:confval:`suppress_warnings`
Bugs fixed
----------

View File

@ -313,6 +313,7 @@ General configuration
* ``ref.doc``
* ``ref.python``
* ``misc.highlighting_failure``
* ``toc.circular``
* ``toc.secnum``
* ``epub.unknown_project_files``
* ``autosectionlabel.*``

View File

@ -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()