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>2021-03-02 16:26:11 +0300
committerGitHub <noreply@github.com>2021-03-02 16:26:11 +0300
commita638a8d5823d4f96c62f4b9b8bf369a603ddfef3 (patch)
tree0cc7c9bbd0a20d7dce71f6c91625454b186f96a8 /sphinx/environment
parent727e95f15cc2b054e44133cea5a2916051a9b066 (diff)
parent2c6c1469eedbc3f975e308cda47d746e5087938e (diff)
Merge pull request #8937 from jantonguirao/fix_explicit_title_subpages
Use explicit title instead of <no title> in the title bar of subpages
Diffstat (limited to 'sphinx/environment')
-rw-r--r--sphinx/environment/collectors/title.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/environment/collectors/title.py b/sphinx/environment/collectors/title.py
index 5225155e8..28e967427 100644
--- a/sphinx/environment/collectors/title.py
+++ b/sphinx/environment/collectors/title.py
@@ -50,7 +50,7 @@ class TitleCollector(EnvironmentCollector):
break
else:
# document has no title
- titlenode += nodes.Text('<no title>')
+ titlenode += nodes.Text(doctree.get('title', '<no title>'))
app.env.titles[app.env.docname] = titlenode
app.env.longtitles[app.env.docname] = longtitlenode