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-11-24 18:50:36 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2021-02-28 11:10:57 +0300
commit3059a999b2f3a2f4b8d69c7e473a81ce70f82f3c (patch)
treec1f4ff73d463e039d80b6610fb8f0e7b79d8a429 /sphinx/environment/collectors
parent6ca7c1c579c6857985a5e8faae64a77b32dc6098 (diff)
Close #8326: Rename master_doc to root_doc
To describe the purpose more accurately, the `master_doc` is now renamed to `root_doc`. The old name is still available. But it is recommeneded to use new one from now on.
Diffstat (limited to 'sphinx/environment/collectors')
-rw-r--r--sphinx/environment/collectors/toctree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/environment/collectors/toctree.py b/sphinx/environment/collectors/toctree.py
index da0b3fe6c..aeb6ef3a6 100644
--- a/sphinx/environment/collectors/toctree.py
+++ b/sphinx/environment/collectors/toctree.py
@@ -281,7 +281,7 @@ class TocTreeCollector(EnvironmentCollector):
_walk_doctree(docname, doctree, secnum)
if env.config.numfig:
- _walk_doc(env.config.master_doc, tuple())
+ _walk_doc(env.config.root_doc, tuple())
for docname, fignums in env.toc_fignumbers.items():
if fignums != old_fignumbers.get(docname):
rewrite_needed.append(docname)