From: Mike Bayer Date: Sat, 7 Jan 2012 22:19:07 +0000 (-0500) Subject: add support to generate gettext X-Git-Tag: rel_0_7_5~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ff1d0a2b11afa3bf067ea6cd151b5e555963781;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git add support to generate gettext --- diff --git a/doc/build/Makefile b/doc/build/Makefile index 2ee70dfb8b..375b61ff9f 100644 --- a/doc/build/Makefile +++ b/doc/build/Makefile @@ -17,6 +17,7 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . help: @echo "Please use \`make ' where 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 diff --git a/doc/build/conf.py b/doc/build/conf.py index fcc05df56f..44884552ec 100644 --- a/doc/build/conf.py +++ b/doc/build/conf.py @@ -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 ---------------------------------------------------