Use name of command for "virtual man page" name

This makes it slightly easier to debug manpage issues without removing
the virtmanpage hack.
This commit is contained in:
Milkey Mouse 2017-11-25 17:06:02 -08:00
parent f45acbb908
commit 559ec0062e
No known key found for this signature in database
GPG Key ID: C6EF5A02F5647987
1 changed files with 1 additions and 1 deletions

View File

@ -678,7 +678,7 @@ class build_man(Command):
roles.register_local_role('issue', issue)
# We give the source_path so that docutils can find relative includes
# as-if the document where located in the docs/ directory.
man_page = publish_string(source=rst, source_path='docs/virtmanpage.rst', writer=manpage.Writer())
man_page = publish_string(source=rst, source_path='docs/%s.rst' % name, writer=manpage.Writer())
with open('docs/man/%s.1' % name, 'wb') as fd:
fd.write(man_page)