From 3ff1d0a2b11afa3bf067ea6cd151b5e555963781 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 7 Jan 2012 17:19:07 -0500 Subject: [PATCH] add support to generate gettext --- doc/build/Makefile | 4 ++++ doc/build/conf.py | 3 +++ 2 files changed, 7 insertions(+) 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 --------------------------------------------------- -- 2.47.2