From 5ba2a7f6280af5b518bd9609f004f99390ca9536 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Sun, 10 Mar 2013 07:25:14 +0100 Subject: [PATCH] Add texinfo build target to doc/*/Makefile --- doc/en/Makefile | 17 +++++++++++++++++ doc/en/conf.py | 13 +++++++++++++ doc/ja/Makefile | 17 +++++++++++++++++ doc/ja/conf.py | 13 +++++++++++++ 4 files changed, 60 insertions(+) diff --git a/doc/en/Makefile b/doc/en/Makefile index 78fa53233..17fab6115 100644 --- a/doc/en/Makefile +++ b/doc/en/Makefile @@ -31,6 +31,8 @@ help: @echo " devhelp to make HTML files and a Devhelp project" @echo " epub to make an epub" @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" + @echo " texinfo to make Texinfo files" + @echo " info to make Texinfo files and run them through makeinfo" @echo " latexpdf to make LaTeX files and run them through pdflatex" @echo " text to make text files" @echo " man to make manual pages" @@ -142,3 +144,18 @@ doctest: $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest @echo "Testing of doctests in the sources finished, look at the " \ "results in $(BUILDDIR)/doctest/output.txt." + +texinfo: + mkdir -p $(BUILDDIR)/texinfo + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo + @echo + @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo." + @echo "Run \`make' in that directory to run these through makeinfo" \ + "(use \`make info' here to do that automatically)." + +info: + mkdir -p $(BUILDDIR)/texinfo + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo + @echo "Running Texinfo files through makeinfo..." + make -C $(BUILDDIR)/texinfo info + @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." diff --git a/doc/en/conf.py b/doc/en/conf.py index b5129740f..0c50eebf5 100644 --- a/doc/en/conf.py +++ b/doc/en/conf.py @@ -273,6 +273,19 @@ epub_copyright = u'2012, holger krekel et alii' #epub_tocdup = True +# -- Options for texinfo output ------------------------------------------------ + +texinfo_documents = [ + (master_doc, 'pytest', 'pytest Documentation', + ('Holger Krekel@*Benjamin Peterson@*Ronny Pfannschmidt@*' + 'Floris Bruynooghe@*others'), + 'pytest', + 'simple powerful testing with Pytho', + 'Programming', + 1), +] + + # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = {'python': ('http://docs.python.org/', None), # 'lib': ("http://docs.python.org/2.7library/", None), diff --git a/doc/ja/Makefile b/doc/ja/Makefile index b80b43e23..10384c113 100644 --- a/doc/ja/Makefile +++ b/doc/ja/Makefile @@ -29,6 +29,8 @@ help: @echo " devhelp to make HTML files and a Devhelp project" @echo " epub to make an epub" @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" + @echo " texinfo to make Texinfo files" + @echo " info to make Texinfo files and run them through makeinfo" @echo " latexpdf to make LaTeX files and run them through pdflatex" @echo " text to make text files" @echo " man to make manual pages" @@ -140,3 +142,18 @@ doctest: $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest @echo "Testing of doctests in the sources finished, look at the " \ "results in $(BUILDDIR)/doctest/output.txt." + +texinfo: + mkdir -p $(BUILDDIR)/texinfo + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo + @echo + @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo." + @echo "Run \`make' in that directory to run these through makeinfo" \ + "(use \`make info' here to do that automatically)." + +info: + mkdir -p $(BUILDDIR)/texinfo + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo + @echo "Running Texinfo files through makeinfo..." + make -C $(BUILDDIR)/texinfo info + @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." diff --git a/doc/ja/conf.py b/doc/ja/conf.py index c46d3fec3..822bbef4a 100644 --- a/doc/ja/conf.py +++ b/doc/ja/conf.py @@ -261,6 +261,19 @@ epub_copyright = u'2011, holger krekel et alii' #epub_tocdup = True +# -- Options for texinfo output ------------------------------------------------ + +texinfo_documents = [ + (master_doc, 'pytest', 'pytest Documentation', + ('Holger Krekel@*Benjamin Peterson@*Ronny Pfannschmidt@*' + 'Floris Bruynooghe@*others'), + 'pytest', + 'simple powerful testing with Pytho', + 'Programming', + 1), +] + + # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = {} # 'http://docs.python.org/': None} def setup(app):