Skip to content

Commit

Permalink
Merge pull request #8937 from jantonguirao/fix_explicit_title_subpages
Browse files Browse the repository at this point in the history
Use explicit title instead of <no title> in the title bar of subpages
  • Loading branch information
tk0miya authored Mar 2, 2021
2 parents 727e95f + 2c6c146 commit a638a8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/environment/collectors/title.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def process_doc(self, app: Sphinx, doctree: nodes.document) -> None:
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

Expand Down

0 comments on commit a638a8d

Please sign in to comment.