From 1df42201ff43e370d28eea82217cb4b437f6ec7d Mon Sep 17 00:00:00 2001 From: Tim Harder Date: Sat, 1 Aug 2015 22:11:54 -0400 Subject: [PATCH] doc: include the argparse generated data directly The symlink hack doesn't appear to be needed in pychroot. --- doc/Makefile | 3 --- doc/conf.py | 1 - doc/man/pychroot.rst | 4 ++-- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index 16ad08d..ff4da72 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -131,9 +131,6 @@ text: man: $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man - @for file in man/*; do \ - [ -L "$${file}" ] && rm -f "$${file}" || continue; \ - done @echo @echo "Build finished. The manual pages are in $(BUILDDIR)/man." diff --git a/doc/conf.py b/doc/conf.py index d38a177..ba8777d 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -42,7 +42,6 @@ def generate_docs(): # generate man page option docs for module, script in generated_man_pages: - os.symlink(os.path.join(os.pardir, 'generated', script), os.path.join('man', script)) ManConverter.regen_if_needed('generated', module, out_name=script) # generate API docs diff --git a/doc/man/pychroot.rst b/doc/man/pychroot.rst index 16a83d1..29c1352 100644 --- a/doc/man/pychroot.rst +++ b/doc/man/pychroot.rst @@ -2,7 +2,7 @@ pychroot ======== -.. include:: pychroot/main_synopsis.rst +.. include:: ../generated/pychroot/main_synopsis.rst Description =========== @@ -10,7 +10,7 @@ Description pychroot is an extended **chroot(1)** equivalent that also provides support for automatically handling bind mounts. -.. include:: pychroot/main_options.rst +.. include:: ../generated/pychroot/main_options.rst Reporting Bugs ==============