From b73eaab2fe875b0fdca1176cbdb55a4b8fcdc098 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Wed, 4 Jul 2012 18:42:13 +0200 Subject: Add texinfo build target for document --- doc/Makefile | 13 +++++++++++++ doc/source/conf.py | 12 ++++++++++++ 2 files changed, 25 insertions(+) diff --git a/doc/Makefile b/doc/Makefile index 03b327079..52dd1ef06 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -166,3 +166,16 @@ linkcheck: generate @echo @echo "Link check complete; look for any errors in the above output " \ "or in build/linkcheck/output.txt." + +texinfo: + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) build/texinfo + @echo + @echo "Build finished. The Texinfo files are in build/texinfo." + @echo "Run \`make' in that directory to run these through makeinfo" \ + "(use \`make info' here to do that automatically)." + +info: + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) build/texinfo + @echo "Running Texinfo files through makeinfo..." + make -C build/texinfo info + @echo "makeinfo finished; the Info files are in build/texinfo." diff --git a/doc/source/conf.py b/doc/source/conf.py index ec72bf0d1..f22505f97 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -199,6 +199,18 @@ latex_preamble = r''' latex_use_modindex = False +# ----------------------------------------------------------------------------- +# Texinfo output +# ----------------------------------------------------------------------------- + +texinfo_documents = [ + ("contents", 'numpy', 'Numpy Documentation', _stdauthor, 'Numpy', + "NumPy: array processing for numbers, strings, records, and objects.", + 'Programming', + 1), +] + + # ----------------------------------------------------------------------------- # Intersphinx configuration # ----------------------------------------------------------------------------- -- cgit v1.2.1