[Pytest-commit] commit/pytest: tkf: Add texinfo build target to doc/*/Makefile
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Sun Mar 10 10:00:39 CET 2013
1 new commit in pytest:
https://bitbucket.org/hpk42/pytest/commits/1944bf94e464/
changeset: 1944bf94e464
user: tkf
date: 2013-03-10 07:25:14
summary: Add texinfo build target to doc/*/Makefile
affected #: 4 files
diff -r 62e3666c1cec8bdd6767dd207a153cb23f2a9ef3 -r 1944bf94e4648184bddcb5bbbbe8c02bcecd2184 doc/en/Makefile
--- a/doc/en/Makefile
+++ b/doc/en/Makefile
@@ -31,6 +31,8 @@
@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 @@
$(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 -r 62e3666c1cec8bdd6767dd207a153cb23f2a9ef3 -r 1944bf94e4648184bddcb5bbbbe8c02bcecd2184 doc/en/conf.py
--- a/doc/en/conf.py
+++ b/doc/en/conf.py
@@ -273,6 +273,19 @@
#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 -r 62e3666c1cec8bdd6767dd207a153cb23f2a9ef3 -r 1944bf94e4648184bddcb5bbbbe8c02bcecd2184 doc/ja/Makefile
--- a/doc/ja/Makefile
+++ b/doc/ja/Makefile
@@ -29,6 +29,8 @@
@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 @@
$(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 -r 62e3666c1cec8bdd6767dd207a153cb23f2a9ef3 -r 1944bf94e4648184bddcb5bbbbe8c02bcecd2184 doc/ja/conf.py
--- a/doc/ja/conf.py
+++ b/doc/ja/conf.py
@@ -261,6 +261,19 @@
#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):
Repository URL: https://bitbucket.org/hpk42/pytest/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the pytest-commit
mailing list