]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add support to generate gettext
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 7 Jan 2012 22:19:07 +0000 (17:19 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 7 Jan 2012 22:19:07 +0000 (17:19 -0500)
doc/build/Makefile
doc/build/conf.py

index 2ee70dfb8b1eb8b7775418f1c6f1f8185044c147..375b61ff9fcb9a107553077d01dc67b2a3090044 100644 (file)
@@ -17,6 +17,7 @@ ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
 help:
        @echo "Please use \`make <target>' where <target> is one of"
        @echo "  html       to make standalone HTML files"
+       @echo "  gettext    generate .pot files"
        @echo "  dist-html  same as html, but places files in /doc"
        @echo "  site-mako  to make sqlalchemy.org Mako files"
        @echo "  dirhtml    to make HTML files named index.html in directories"
@@ -43,6 +44,9 @@ html:
        @echo
        @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
 
+gettext:
+       $(SPHINXBUILD) -b gettext $(SPHINXOPTS) . $(BUILDDIR)/gettext
+
 dist-html:
        $(SPHINXBUILD) -b html -A mako_layout=html $(ALLSPHINXOPTS) ..
        @echo
index fcc05df56fabfc1c6d65d5bc8294d0d8d01f66d8..44884552ec377da1e760f48d84c1254a62c62e6c 100644 (file)
@@ -104,6 +104,9 @@ pygments_style = 'sphinx'
 # A list of ignored prefixes for module index sorting.
 #modindex_common_prefix = []
 
+# have the "gettext" build generate .pot for each individual
+# .rst
+gettext_compact = False
 
 # -- Options for HTML output ---------------------------------------------------