Merge pull request #3377 from milkey-mouse/fix-build-man

Fix build_man issues
This commit is contained in:
TW 2017-11-26 04:09:03 +01:00 committed by GitHub
commit c312a9a95b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -678,7 +678,7 @@ class build_man(Command):
roles.register_local_role('issue', issue) roles.register_local_role('issue', issue)
# We give the source_path so that docutils can find relative includes # We give the source_path so that docutils can find relative includes
# as-if the document where located in the docs/ directory. # 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: with open('docs/man/%s.1' % name, 'wb') as fd:
fd.write(man_page) fd.write(man_page)