diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-09-12 13:18:21 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-09-12 13:23:19 +0300 |
commit | ca146ac18be3fdb9108b8d9dcb0b165ee62e56df (patch) | |
tree | fd8398253f12051fcd13b06f1c4978e0079ea362 /sphinx/directives | |
parent | 5c4f741fffa0d698e82d31b3dd76c34982d313b5 (diff) |
Close #9623: Allow to suppress warnings on excluded document found in toctree
Diffstat (limited to 'sphinx/directives')
-rw-r--r-- | sphinx/directives/other.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py index f04526f93..7e5b341f0 100644 --- a/sphinx/directives/other.py +++ b/sphinx/directives/other.py @@ -132,7 +132,8 @@ class TocTree(SphinxDirective): else: message = __('toctree contains reference to nonexisting document %r') - logger.warning(message, docname, location=toctree) + logger.warning(message, docname, type='toc', subtype='not_readable', + location=toctree) self.env.note_reread() else: if docname in all_docnames: |