Merge pull request #7460 from tk0miya/7410_suppress_circular_toctree_warning

Fix #7410: Allow to suppress "circular toctree references detected" warnings
This commit is contained in:
Takeshi KOMIYA 2020-04-12 16:13:34 +09:00 committed by GitHub
commit 8cc0b890bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -14,6 +14,8 @@ Features added
--------------
* LaTeX: Make the ``toplevel_sectioning`` setting optional in LaTeX theme
* #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()