summaryrefslogtreecommitdiff
path: root/sphinx/builders/manpage.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-03 00:43:39 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-03 01:11:06 +0900
commitfd73a169c7abe649aab2fcf12d192f44822bbef2 (patch)
tree5609270523a017b24181670103d5f23d4db2688c /sphinx/builders/manpage.py
parent8068cef267d771cd933316ba93b13665e8282c9d (diff)
downloadsphinx-git-fd73a169c7abe649aab2fcf12d192f44822bbef2.tar.gz
Fix annotations (minor fixes)
Diffstat (limited to 'sphinx/builders/manpage.py')
-rw-r--r--sphinx/builders/manpage.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/sphinx/builders/manpage.py b/sphinx/builders/manpage.py
index a18d77d82..e5e9e187d 100644
--- a/sphinx/builders/manpage.py
+++ b/sphinx/builders/manpage.py
@@ -84,6 +84,11 @@ class ManualPageBuilder(Builder):
else:
authors = []
+ docsettings.title = name
+ docsettings.subtitle = description
+ docsettings.authors = authors
+ docsettings.section = section
+
targetname = '%s.%s' % (name, section)
logger.info(darkgreen(targetname) + ' { ', nonl=True)
destination = FileOutput(
@@ -94,18 +99,13 @@ class ManualPageBuilder(Builder):
docnames = set() # type: Set[unicode]
largetree = inline_all_toctrees(self, docnames, docname, tree,
darkgreen, [docname])
+ largetree.settings = docsettings
logger.info('} ', nonl=True)
self.env.resolve_references(largetree, docname, self)
# remove pending_xref nodes
for pendingnode in largetree.traverse(addnodes.pending_xref):
pendingnode.replace_self(pendingnode.children)
- largetree.settings = docsettings
- largetree.settings.title = name
- largetree.settings.subtitle = description
- largetree.settings.authors = authors
- largetree.settings.section = section
-
docwriter.write(largetree, destination)
logger.info('')