mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #8937 from jantonguirao/fix_explicit_title_subpages
Use explicit title instead of <no title> in the title bar of subpages
This commit is contained in:
commit
a638a8d582
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user