瀏覽代碼

Use name of command for "virtual man page" name

This makes it slightly easier to debug manpage issues without removing
the virtmanpage hack.
Milkey Mouse 7 年之前
父節點
當前提交
559ec0062e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      setup.py

+ 1 - 1
setup.py

@@ -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)