summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/Makefile13
-rw-r--r--doc/source/conf.py12
2 files changed, 25 insertions, 0 deletions
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
@@ -200,6 +200,18 @@ 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
# -----------------------------------------------------------------------------
intersphinx_mapping = {'http://docs.python.org/dev': None}