Skip to content

Commit

Permalink
Fix sphinx-doc#7410: Allow to suppress "circular toctree references d…
Browse files Browse the repository at this point in the history
…etected" warnings
  • Loading branch information
tk0miya committed Apr 11, 2020
1 parent fd7c1d7 commit 2a90640
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Deprecated
Features added
--------------

* #7410:
* #7410: Allow to suppress "circular toctree references detected" warnings using
:confval:`suppress_warnings`

Bugs fixed
----------

Expand Down
2 changes: 2 additions & 0 deletions doc/usage/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,9 @@ General configuration
* ``ref.footnote``
* ``ref.doc``
* ``ref.python``
* ``ref.python``
* ``misc.highlighting_failure``
* ``toc.circular``
* ``toc.secnum``
* ``epub.unknown_project_files``
* ``autosectionlabel.*``
Expand Down
2 changes: 1 addition & 1 deletion sphinx/environment/adapters/toctree.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def _entries_from_toctree(toctreenode: addnodes.toctree, parents: List[str],
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()
Expand Down

0 comments on commit 2a90640

Please sign in to comment.