mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Make warning message consistent; re-read toctree document when include is missing.
This commit is contained in:
parent
210add8d2c
commit
8e43f4f603
@ -73,8 +73,9 @@ class TocTree(Directive):
|
|||||||
entries.append((title, ref))
|
entries.append((title, ref))
|
||||||
elif docname not in env.found_docs:
|
elif docname not in env.found_docs:
|
||||||
ret.append(self.state.document.reporter.warning(
|
ret.append(self.state.document.reporter.warning(
|
||||||
'toctree references unknown document %r' % docname,
|
'toctree contains reference to nonexisting '
|
||||||
line=self.lineno))
|
'document %r' % docname, line=self.lineno))
|
||||||
|
env.note_reread()
|
||||||
else:
|
else:
|
||||||
entries.append((title, docname))
|
entries.append((title, docname))
|
||||||
includefiles.append(docname)
|
includefiles.append(docname)
|
||||||
|
Loading…
Reference in New Issue
Block a user