diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-03-02 16:26:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-02 16:26:11 +0300 |
commit | a638a8d5823d4f96c62f4b9b8bf369a603ddfef3 (patch) | |
tree | 0cc7c9bbd0a20d7dce71f6c91625454b186f96a8 /sphinx/environment | |
parent | 727e95f15cc2b054e44133cea5a2916051a9b066 (diff) | |
parent | 2c6c1469eedbc3f975e308cda47d746e5087938e (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.py | 2 |
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 |