Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-04-11 13:05:04 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-04-12 09:25:35 +0300
commit10d776015675252c7a1f111e0122bec05645db07 (patch)
tree1d28165df89e5254b0f62075916d2c202e8f55e6 /sphinx/environment
parentfd7c1d76b65965e3646074d5a5bde61e62fc9a91 (diff)
Fix #7410: Allow to suppress "circular toctree references detected" warnings
Diffstat (limited to 'sphinx/environment')
-rw-r--r--sphinx/environment/adapters/toctree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/environment/adapters/toctree.py b/sphinx/environment/adapters/toctree.py
index bd3abd9ed..9a1ef73d4 100644
--- a/sphinx/environment/adapters/toctree.py
+++ b/sphinx/environment/adapters/toctree.py
@@ -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()