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-10-04 16:41:44 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-10-04 16:41:44 +0300
commit598b85da75bc533004d68b95a5056016dc16df1c (patch)
treee08eae0ea5f098257f01081e4c792bcfeb92eba6 /sphinx/environment
parent11633f2e53bf01f6844256558444991836815690 (diff)
parent38bb3774643d779b708970f941f2b16d1ab81b89 (diff)
Merge branch '3.x' into master
Diffstat (limited to 'sphinx/environment')
-rw-r--r--sphinx/environment/collectors/toctree.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sphinx/environment/collectors/toctree.py b/sphinx/environment/collectors/toctree.py
index acb45ef56..d17f7090e 100644
--- a/sphinx/environment/collectors/toctree.py
+++ b/sphinx/environment/collectors/toctree.py
@@ -220,6 +220,10 @@ class TocTreeCollector(EnvironmentCollector):
def get_figtype(node: Node) -> str:
for domain in env.domains.values():
figtype = domain.get_enumerable_node_type(node)
+ if domain.name == 'std' and not domain.get_numfig_title(node): # type: ignore
+ # Skip if uncaptioned node
+ continue
+
if figtype:
return figtype