null+****@clear*****
null+****@clear*****
2011年 5月 17日 (火) 18:44:21 JST
Kouhei Sutou 2011-05-17 09:44:21 +0000 (Tue, 17 May 2011)
New Revision: 609eb04b127fd8ed762342c2ba2446424dfa8f58
Log:
[doc] create generated files to doc/${language}/*/.
Added files:
build/makefiles/sphinx-build.mk
build/makefiles/sphinx.mk
doc/ja/Makefile.am
Modified files:
.gitignore
configure.ac
doc/Makefile.am
Modified: .gitignore (+12 -12)
===================================================================
--- .gitignore 2011-05-17 02:27:37 +0000 (2ff272e)
+++ .gitignore 2011-05-17 09:44:21 +0000 (795763a)
@@ -38,20 +38,20 @@ Makefile.in
version.sh
/examples/kv
/examples/index
-/doc/doctrees/
-/doc/html/
-/doc/rdoc/
-/doc/man/
-/doc/pickle/
-/doc/textile/
-/doc/pdf/
+/doc/*/doctrees/
+/doc/*/html/
+/doc/*/dirhtml/
+/doc/*/htmlhelp/
+/doc/*/json/
+/doc/*/latex/
+/doc/*/qthelp/
+/doc/*/rdoc/
+/doc/*/man/
+/doc/*/pickle/
+/doc/*/textile/
+/doc/*/pdf/
/doc/pot/
-/doc/.buildinfo
-/doc/_sources/
-/doc/_static/
-/doc/build/
/doc/commands_not_implemented/
-/doc/objects.inv
/doc/sphinx/
/doc/locale/
/lib/icudump
Added: build/makefiles/sphinx-build.mk (+152 -0) 100644
===================================================================
--- /dev/null
+++ build/makefiles/sphinx-build.mk 2011-05-17 09:44:21 +0000 (b05e874)
@@ -0,0 +1,152 @@
+SPHINXOPTS =
+PAPER =
+
+SPHINX_DIR = $(abs_top_builddir)/doc/sphinx
+SPHINX_BUILD = $(SPHINX_DIR)/sphinx-build.py
+SPHINX_BUILD_COMMAND = PYTHONPATH="$(SPHINX_DIR):$$PYTHONPATH" python $(SPHINX_BUILD)
+
+.PHONY: sphinx-ensure-updated
+
+$(SPHINX_BUILD):
+ hg clone https://bitbucket.org/birkenfeld/sphinx $(SPHINX_DIR)
+
+sphinx-ensure-updated: $(SPHINX_BUILD)
+ if ! $(SPHINX_BUILD_COMMAND) 2>&1 | head -1 | grep v1.1 -q > /dev/null; then \
+ hg pull $(SPHINX_DIR); \
+ fi
+
+
+# (cd ../../doc; find source -type f -not -name '*.pyc' | sort | sed -e 's,^,\t$(top_srcdir)/doc/,g')
+source_files = \
+ $(top_srcdir)/doc/source/__init__.py \
+ $(top_srcdir)/doc/source/characteristic.txt \
+ $(top_srcdir)/doc/source/command_version.txt \
+ $(top_srcdir)/doc/source/commands.txt \
+ $(top_srcdir)/doc/source/commands/cache_limit.txt \
+ $(top_srcdir)/doc/source/commands/check.txt \
+ $(top_srcdir)/doc/source/commands/clearlock.txt \
+ $(top_srcdir)/doc/source/commands/column_create.txt \
+ $(top_srcdir)/doc/source/commands/column_list.txt \
+ $(top_srcdir)/doc/source/commands/column_remove.txt \
+ $(top_srcdir)/doc/source/commands/define_selector.txt \
+ $(top_srcdir)/doc/source/commands/defrag.txt \
+ $(top_srcdir)/doc/source/commands/delete.txt \
+ $(top_srcdir)/doc/source/commands/dump.txt \
+ $(top_srcdir)/doc/source/commands/load.txt \
+ $(top_srcdir)/doc/source/commands/log_level.txt \
+ $(top_srcdir)/doc/source/commands/log_put.txt \
+ $(top_srcdir)/doc/source/commands/log_reopen.txt \
+ $(top_srcdir)/doc/source/commands/quit.txt \
+ $(top_srcdir)/doc/source/commands/select.txt \
+ $(top_srcdir)/doc/source/commands/shutdown.txt \
+ $(top_srcdir)/doc/source/commands/status.txt \
+ $(top_srcdir)/doc/source/commands/suggest.txt \
+ $(top_srcdir)/doc/source/commands/table_create.txt \
+ $(top_srcdir)/doc/source/commands/table_list.txt \
+ $(top_srcdir)/doc/source/commands/table_remove.txt \
+ $(top_srcdir)/doc/source/commands/view_add.txt \
+ $(top_srcdir)/doc/source/commands_not_implemented/add.txt \
+ $(top_srcdir)/doc/source/commands_not_implemented/get.txt \
+ $(top_srcdir)/doc/source/commands_not_implemented/set.txt \
+ $(top_srcdir)/doc/source/conf.py \
+ $(top_srcdir)/doc/source/developer.txt \
+ $(top_srcdir)/doc/source/developer/com.txt \
+ $(top_srcdir)/doc/source/developer/document.txt \
+ $(top_srcdir)/doc/source/developer/query.txt \
+ $(top_srcdir)/doc/source/developer/test.txt \
+ $(top_srcdir)/doc/source/example/tutorial01-1.log \
+ $(top_srcdir)/doc/source/example/tutorial01-10.log \
+ $(top_srcdir)/doc/source/example/tutorial01-11.log \
+ $(top_srcdir)/doc/source/example/tutorial01-12.log \
+ $(top_srcdir)/doc/source/example/tutorial01-13.log \
+ $(top_srcdir)/doc/source/example/tutorial01-14.log \
+ $(top_srcdir)/doc/source/example/tutorial01-15.log \
+ $(top_srcdir)/doc/source/example/tutorial01-16.log \
+ $(top_srcdir)/doc/source/example/tutorial01-17.log \
+ $(top_srcdir)/doc/source/example/tutorial01-2.log \
+ $(top_srcdir)/doc/source/example/tutorial01-3.log \
+ $(top_srcdir)/doc/source/example/tutorial01-4.log \
+ $(top_srcdir)/doc/source/example/tutorial01-5.log \
+ $(top_srcdir)/doc/source/example/tutorial01-6.log \
+ $(top_srcdir)/doc/source/example/tutorial01-7.log \
+ $(top_srcdir)/doc/source/example/tutorial01-8.log \
+ $(top_srcdir)/doc/source/example/tutorial01-9.log \
+ $(top_srcdir)/doc/source/example/tutorial02-1.log \
+ $(top_srcdir)/doc/source/example/tutorial02-2.log \
+ $(top_srcdir)/doc/source/example/tutorial02-3.log \
+ $(top_srcdir)/doc/source/example/tutorial03-1.log \
+ $(top_srcdir)/doc/source/example/tutorial03-2.log \
+ $(top_srcdir)/doc/source/example/tutorial03-3.log \
+ $(top_srcdir)/doc/source/example/tutorial04-1.log \
+ $(top_srcdir)/doc/source/example/tutorial04-2.log \
+ $(top_srcdir)/doc/source/example/tutorial04-3.log \
+ $(top_srcdir)/doc/source/example/tutorial04-4.log \
+ $(top_srcdir)/doc/source/example/tutorial04-5.log \
+ $(top_srcdir)/doc/source/example/tutorial04-6.log \
+ $(top_srcdir)/doc/source/example/tutorial04-7.log \
+ $(top_srcdir)/doc/source/example/tutorial05-1.log \
+ $(top_srcdir)/doc/source/example/tutorial05-2.log \
+ $(top_srcdir)/doc/source/example/tutorial05-3.log \
+ $(top_srcdir)/doc/source/example/tutorial05-4.log \
+ $(top_srcdir)/doc/source/example/tutorial05-5.log \
+ $(top_srcdir)/doc/source/example/tutorial05-6.log \
+ $(top_srcdir)/doc/source/example/tutorial06-1.log \
+ $(top_srcdir)/doc/source/example/tutorial06-2.log \
+ $(top_srcdir)/doc/source/example/tutorial06-3.log \
+ $(top_srcdir)/doc/source/example/tutorial06-4.log \
+ $(top_srcdir)/doc/source/example/tutorial06-5.log \
+ $(top_srcdir)/doc/source/example/tutorial06-6.log \
+ $(top_srcdir)/doc/source/example/tutorial06-7.log \
+ $(top_srcdir)/doc/source/example/tutorial07-1.log \
+ $(top_srcdir)/doc/source/example/tutorial07-2.log \
+ $(top_srcdir)/doc/source/example/tutorial07-3.log \
+ $(top_srcdir)/doc/source/example/tutorial07-4.log \
+ $(top_srcdir)/doc/source/example/tutorial08-1.log \
+ $(top_srcdir)/doc/source/example/tutorial10-1.log \
+ $(top_srcdir)/doc/source/example/tutorial10-10.log \
+ $(top_srcdir)/doc/source/example/tutorial10-2.log \
+ $(top_srcdir)/doc/source/example/tutorial10-3.log \
+ $(top_srcdir)/doc/source/example/tutorial10-4.log \
+ $(top_srcdir)/doc/source/example/tutorial10-5.log \
+ $(top_srcdir)/doc/source/example/tutorial10-6.log \
+ $(top_srcdir)/doc/source/example/tutorial10-7.log \
+ $(top_srcdir)/doc/source/example/tutorial10-8.log \
+ $(top_srcdir)/doc/source/example/tutorial10-9.log \
+ $(top_srcdir)/doc/source/execfile.txt \
+ $(top_srcdir)/doc/source/expr.txt \
+ $(top_srcdir)/doc/source/functions.txt \
+ $(top_srcdir)/doc/source/functions/edit_distance.txt \
+ $(top_srcdir)/doc/source/functions/geo_distance.txt \
+ $(top_srcdir)/doc/source/functions/geo_in_circle.txt \
+ $(top_srcdir)/doc/source/functions/geo_in_rectangle.txt \
+ $(top_srcdir)/doc/source/functions/now.txt \
+ $(top_srcdir)/doc/source/functions/rand.txt \
+ $(top_srcdir)/doc/source/grnslap.txt \
+ $(top_srcdir)/doc/source/grntest.txt \
+ $(top_srcdir)/doc/source/http.txt \
+ $(top_srcdir)/doc/source/index.txt \
+ $(top_srcdir)/doc/source/install.txt \
+ $(top_srcdir)/doc/source/limitations.txt \
+ $(top_srcdir)/doc/source/news.txt \
+ $(top_srcdir)/doc/source/process.txt \
+ $(top_srcdir)/doc/source/pseudo_column.txt \
+ $(top_srcdir)/doc/source/rdoc.py \
+ $(top_srcdir)/doc/source/reference.txt \
+ $(top_srcdir)/doc/source/spec.txt \
+ $(top_srcdir)/doc/source/spec/search.txt \
+ $(top_srcdir)/doc/source/textile.py \
+ $(top_srcdir)/doc/source/troubleshooting.txt \
+ $(top_srcdir)/doc/source/troubleshooting/different_results_with_the_same_keyword.txt \
+ $(top_srcdir)/doc/source/tutorial.txt \
+ $(top_srcdir)/doc/source/tutorial/tutorial01.txt \
+ $(top_srcdir)/doc/source/tutorial/tutorial02.txt \
+ $(top_srcdir)/doc/source/tutorial/tutorial03.txt \
+ $(top_srcdir)/doc/source/tutorial/tutorial04.txt \
+ $(top_srcdir)/doc/source/tutorial/tutorial05.txt \
+ $(top_srcdir)/doc/source/tutorial/tutorial06.txt \
+ $(top_srcdir)/doc/source/tutorial/tutorial07.txt \
+ $(top_srcdir)/doc/source/tutorial/tutorial08.txt \
+ $(top_srcdir)/doc/source/tutorial/tutorial09.txt \
+ $(top_srcdir)/doc/source/tutorial/tutorial10.txt \
+ $(top_srcdir)/doc/source/type.txt \
+ $(top_srcdir)/doc/source/update_execution_example.py
Added: build/makefiles/sphinx.mk (+205 -0) 100644
===================================================================
--- /dev/null
+++ build/makefiles/sphinx.mk 2011-05-17 09:44:21 +0000 (6381a85)
@@ -0,0 +1,205 @@
+include $(abs_topsrcdir)/build/makefiles/shpinx-build.mk
+
+# You can set these variables from the command line.
+DOCTREES_BASE = doctrees
+DOC_LANGUAGES = en ja
+
+# Internal variables.
+PAPEROPT_a4 = -D latex_paper_size=a4
+PAPEROPT_letter = -D latex_paper_size=letter
+ALLSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(abs_top_srcdir)/doc/source
+
+.PHONY: help clean man html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
+
+help:
+ @echo "Please use \`make <target>' where <target> is one of"
+ @echo " man to make man files"
+ @echo " html to make standalone HTML files"
+ @echo " dirhtml to make HTML files named index.html in directories"
+ @echo " pickle to make pickle files"
+ @echo " json to make JSON files"
+ @echo " htmlhelp to make HTML files and a HTML help project"
+ @echo " qthelp to make HTML files and a qthelp project"
+ @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
+ @echo " rdoc to make RDoc files"
+ @echo " textile to make Textile files"
+ @echo " changes to make an overview of all changed/added/deprecated items"
+ @echo " linkcheck to check all external links for integrity"
+ @echo " doctest to run all doctests embedded in the documentation (if enabled)"
+
+clean-doctree:
+ -rm -rf $(DOCTREES_BASE)
+
+clean-local: clean-doctree
+ -rm -rf $(DOCTREES_BASE)
+ -rm -rf $(BUILDDIR)/man
+ -rm -rf $(BUILDDIR)/html
+ -rm -rf $(BUILDDIR)/dirhtml
+ -rm -rf $(BUILDDIR)/pickle
+ -rm -rf $(BUILDDIR)/json
+ -rm -rf $(BUILDDIR)/htmlhelp
+ -rm -rf $(BUILDDIR)/qthelp
+ -rm -rf $(BUILDDIR)/latex
+ -rm -rf $(BUILDDIR)/rdoc
+ -rm -rf $(BUILDDIR)/textile
+ -rm -rf $(BUILDDIR)/changes
+ -rm -rf $(BUILDDIR)/linkcheck
+ -rm -rf $(BUILDDIR)/doctest
+ -rm -rf $(BUILDDIR)/pdf
+
+man: sphinx-ensure-updated man/groonga.1
+
+man/groonga.1: $(source_files)
+ $(SPHINX_BUILD_COMMAND) \
+ -Dlanguage=$(DOC_LANGUAGE) \
+ -d $(DOCTREES_BASE)/man \
+ -b man \
+ $(ALLSPHINXOPTS) \
+ man
+
+html: sphinx-ensure-updated html/index.html
+
+html/index.html: $(source_files)
+ $(SPHINX_BUILD_COMMAND) \
+ -Dlanguage=$(DOC_LANGUAGE) \
+ -d $(DOCTREES_BASE)html \
+ -b html \
+ $(ALLSPHINXOPTS) \
+ html
+
+dirhtml: sphinx-ensure-updated dirhtml/index.html
+
+dirhtml/index.html: $(source_files)
+ $(SPHINX_BUILD_COMMAND) \
+ -Dlanguage=$(DOC_LANGUAGE) \
+ -d $(DOCTREES_BASE)/dirhtml \
+ -b dirhtml \
+ $(ALLSPHINXOPTS) \
+ dirhtml
+
+pickle: sphinx-ensure-updated pickle/index.fpickle
+
+pickle/index.fpickle: $(source_files)
+ $(SPHINX_BUILD_COMMAND) \
+ -Dlanguage=$(DOC_LANGUAGE) \
+ -d $(DOCTREES_BASE)/pickle \
+ -b pickle \
+ $(ALLSPHINXOPTS) \
+ pickle
+
+json: sphinx-ensure-updated json/index.fjson
+
+json/index.fjson: $(source_files)
+ $(SPHINX_BUILD_COMMAND) \
+ -Dlanguage=$(DOC_LANGUAGE) \
+ -d $(DOCTREES_BASE)/json \
+ -b json \
+ $(ALLSPHINXOPTS) \
+ json
+
+htmlhelp: sphinx-ensure-updated htmlhelp/index.html
+
+htmlhelp/index.html: $(source_files)
+ $(SPHINX_BUILD_COMMAND) \
+ -Dlanguage=$(DOC_LANGUAGE) \
+ -d $(DOCTREES_BASE)/htmlhelp \
+ -b htmlhelp \
+ $(ALLSPHINXOPTS) \
+ htmlhelp
+
+qthelp: sphinx-ensure-updated
+ $(SPHINX_BUILD_COMMAND) \
+ -Dlanguage=$(DOC_LANGUAGE) \
+ -d $(DOCTREES_BASE)/qthelp \
+ -b qthelp \
+ $(ALLSPHINXOPTS) \
+ qthelp
+ @echo
+ @echo "Build finished; now you can run 'qcollectiongenerator' with the" \
+ ".qhcp project file in qthelp/*/, like this:"
+ @echo "# qcollectiongenerator qthelp/groonga.qhcp"
+ @echo "To view the help file:"
+ @echo "# assistant -collectionFile qthelp/groonga.qhc"
+
+latex: sphinx-ensure-updated
+ $(SPHINX_BUILD_COMMAND) \
+ -Dlanguage=$(DOC_LANGUAGE) \
+ -d $(DOCTREES_BASE)/latex \
+ -b latex \
+ $(ALLSPHINXOPTS) \
+ latex
+ @echo
+ @echo "Build finished; the LaTeX files are in latex/*/."
+ @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
+ "run these through (pdf)latex."
+
+rdoc: sphinx-ensure-updated
+ $(SPHINX_BUILD_COMMAND) \
+ -Dlanguage=$(DOC_LANGUAGE) \
+ -d $(DOCTREES_BASE)/rdoc \
+ -b rdoc \
+ $(ALLSPHINXOPTS) \
+ rdoc
+
+textile: sphinx-ensure-updated
+ $(SPHINX_BUILD_COMMAND) \
+ -Dlanguage=$(DOC_LANGUAGE) \
+ -d $(DOCTREES_BASE)/textile \
+ -b textile \
+ $(ALLSPHINXOPTS) \
+ textile
+
+changes: sphinx-ensure-updated
+ $(SPHINX_BUILD_COMMAND) \
+ -Dlanguage=$(DOC_LANGUAGE) \
+ -d $(DOCTREES_BASE)/changes \
+ -b changes \
+ $(ALLSPHINXOPTS) \
+ changes
+
+linkcheck: sphinx-ensure-updated linkcheck/output.txt
+
+linkcheck/output.txt: $(source_files)
+ $(SPHINX_BUILD_COMMAND) \
+ -Dlanguage=$(DOC_LANGUAGE) \
+ -d $(DOCTREES_BASE)/linkcheck \
+ -b linkcheck \
+ $(ALLSPHINXOPTS) \
+ linkcheck
+
+doctest: sphinx-ensure-updated
+ $(SPHINX_BUILD_COMMAND) \
+ -Dlanguage=$(DOC_LANGUAGE) \
+ -d $(DOCTREES_BASE)/doctest \
+ -b doctest \
+ $(ALLSPHINXOPTS) \
+ doctest
+
+pdf: sphinx-ensure-updated
+ $(SPHINX_BUILD_COMMAND) \
+ -Dlanguage=$(DOC_LANGUAGE) \
+ -d $(DOCTREES_BASE)/pdf \
+ -b pdf \
+ $(ALLSPHINXOPTS) \
+ pdf
+
+if ENABLE_DOCUMENT
+dist-hook:
+ @touch $(distdir)/man-build-stamp
+ @touch $(distdir)/html-build-stamp
+
+dist_man1_MANS = \
+ man/groonga.1
+
+$(dist_man1_MANS): man-build-stamp
+man-build-stamp:
+ $(MAKE) man
+
+nobase_dist_doc_DATA = \
+ $(source_files) \
+ $(html_files)
+
+$(html_files): html-build-stamp
+html-build-stamp:
+ $(MAKE) html
+endif
Modified: configure.ac (+1 -0)
===================================================================
--- configure.ac 2011-05-17 02:27:37 +0000 (0fac633)
+++ configure.ac 2011-05-17 09:44:21 +0000 (89f0b79)
@@ -135,6 +135,7 @@ AC_CONFIG_FILES([Makefile
data/init.d/redhat/sysconfig/Makefile
tools/Makefile
doc/Makefile
+ doc/ja/Makefile
test/Makefile
test/unit/Makefile
test/unit/lib/Makefile
Modified: doc/Makefile.am (+4 -365)
===================================================================
--- doc/Makefile.am 2011-05-17 02:27:37 +0000 (ea6fa8a)
+++ doc/Makefile.am 2011-05-17 09:44:21 +0000 (05557c5)
@@ -1,238 +1,12 @@
-docdir = $(pkgdatadir)/doc
-
-# Makefile for Sphinx documentation
-#
-
-# You can set these variables from the command line.
-SPHINXOPTS =
-PAPER =
-BUILDDIR = .
-DOCTREES_BASE = $(BUILDDIR)/doctrees
-LANGUAGES = en ja
-
-# Internal variables.
-PAPEROPT_a4 = -D latex_paper_size=a4
-PAPEROPT_letter = -D latex_paper_size=letter
-ALLSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
-
-.PHONY: sphinx-ensure-updated help clean man html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest update-po create-mo
-
-SPHINX_BUILD = sphinx/sphinx-build.py
-SPHINX_BUILD_COMMAND = PYTHONPATH="$(abs_builddir)/sphinx:$$PYTHONPATH" python $(SPHINX_BUILD)
-
-sphinx-ensure-updated:
- if [ -f $(SPHINX_BUILD) ]; then \
- if ! $(SPHINX_BUILD_COMMAND) 2>&1 | head -1 | \
- grep v1.1 -q > /dev/null; then \
- hg pull sphinx; \
- fi; \
- else \
- hg clone https://bitbucket.org/birkenfeld/sphinx; \
- fi
-
-help:
- @echo "Please use \`make <target>' where <target> is one of"
- @echo " man to make man files"
- @echo " html to make standalone HTML files"
- @echo " dirhtml to make HTML files named index.html in directories"
- @echo " pickle to make pickle files"
- @echo " json to make JSON files"
- @echo " htmlhelp to make HTML files and a HTML help project"
- @echo " qthelp to make HTML files and a qthelp project"
- @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
- @echo " rdoc to make RDoc files"
- @echo " textile to make Textile files"
- @echo " changes to make an overview of all changed/added/deprecated items"
- @echo " linkcheck to check all external links for integrity"
- @echo " gettext to make pot files"
- @echo " doctest to run all doctests embedded in the documentation (if enabled)"
-
-clean-doctree:
- -rm -rf $(DOCTREES_BASE)
-
-clean-local: clean-doctree
- -rm -rf $(DOCTREES_BASE)
- -rm -rf $(BUILDDIR)/man
- -rm -rf $(BUILDDIR)/html
- -rm -rf $(BUILDDIR)/dirhtml
- -rm -rf $(BUILDDIR)/pickle
- -rm -rf $(BUILDDIR)/json
- -rm -rf $(BUILDDIR)/htmlhelp
- -rm -rf $(BUILDDIR)/qthelp
- -rm -rf $(BUILDDIR)/latex
- -rm -rf $(BUILDDIR)/rdoc
- -rm -rf $(BUILDDIR)/textile
- -rm -rf $(BUILDDIR)/changes
- -rm -rf $(BUILDDIR)/linkcheck
- -rm -rf $(BUILDDIR)/doctest
- -rm -rf $(BUILDDIR)/pdf
-
-man: sphinx-ensure-updated
- for language in $(LANGUAGES); do \
- $(SPHINX_BUILD_COMMAND) \
- -Dlanguage=$$language \
- -d $(DOCTREES_BASE)/man/$$language \
- -b man \
- $(ALLSPHINXOPTS) \
- $(BUILDDIR)/man/$$language; \
- echo "Build finished. " \
- "The man pages are in $(BUILDDIR)/man/$${language}."; \
- done
- @echo
- @echo "Build finished. The man pages are in $(BUILDDIR)/man."
-
-html: sphinx-ensure-updated
- for language in $(LANGUAGES); do \
- $(SPHINX_BUILD_COMMAND) \
- -Dlanguage=$$language \
- -d $(DOCTREES_BASE)/html/$$language \
- -b html \
- $(ALLSPHINXOPTS) \
- $(BUILDDIR)/html/$$language; \
- echo "Build finished. " \
- "The HTML pages are in $(BUILDDIR)/html/$${language}."; \
- done
- @echo
- @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
-
-dirhtml: sphinx-ensure-updated
- for language in $(LANGUAGES); do \
- $(SPHINX_BUILD_COMMAND) \
- -Dlanguage=$$language \
- -d $(DOCTREES_BASE)/dirhtml/$$language \
- -b dirhtml \
- $(ALLSPHINXOPTS) \
- $(BUILDDIR)/dirhtml/$$language; \
- echo "Build finished. " \
- "The HTML pages are in $(BUILDDIR)/dirhtml/$${language}."; \
- done
- @echo
- @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
-
-pickle: sphinx-ensure-updated
- for language in $(LANGUAGES); do \
- $(SPHINX_BUILD_COMMAND) \
- -Dlanguage=$$language \
- -d $(DOCTREES_BASE)/pickle/$$language \
- -b pickle \
- $(ALLSPHINXOPTS) \
- $(BUILDDIR)/pickle/$$language; \
- echo "Build finished; " \
- "now you can process the pickle files for $${language}."; \
- done
- @echo
- @echo "Build finished; now you can process the pickle files."
-
-json: sphinx-ensure-updated
- for language in $(LANGUAGES); do \
- $(SPHINX_BUILD_COMMAND) \
- -Dlanguage=$$language \
- -d $(DOCTREES_BASE)/json/$$language \
- -b json \
- $(ALLSPHINXOPTS) \
- $(BUILDDIR)/json/$$language; \
- echo "Build finished; " \
- "now you can process the JSON files for $${language}."; \
- done
- @echo
- @echo "Build finished; now you can process the JSON files."
-
-htmlhelp: sphinx-ensure-updated
- for language in $(LANGUAGES); do \
- $(SPHINX_BUILD_COMMAND) \
- -Dlanguage=$$language \
- -d $(DOCTREES_BASE)/htmlhelp/$$language \
- -b htmlhelp \
- $(ALLSPHINXOPTS) \
- $(BUILDDIR)/htmlhelp/$$language; \
- echo "Build finished; now you can run HTML Help Workshop with the" \
- ".hhp project file in $(BUILDDIR)/htmlhelp/$${language}."; \
- done
- @echo
- @echo "Build finished; now you can run HTML Help Workshop with the" \
- ".hhp project file in $(BUILDDIR)/htmlhelp."
-
-qthelp: sphinx-ensure-updated
- for language in $(LANGUAGES); do \
- $(SPHINX_BUILD_COMMAND) \
- -Dlanguage=$$language \
- -d $(DOCTREES_BASE)/qthelp/$$language \
- -b qthelp \
- $(ALLSPHINXOPTS) \
- $(BUILDDIR)/qthelp/$$language; \
- echo "Build finished; " \
- ".qhcp project file is $(BUILDDIR)/qthelp/$${language}."; \
- done
- @echo
- @echo "Build finished; now you can run 'qcollectiongenerator' with the" \
- ".qhcp project file in $(BUILDDIR)/qthelp/*/, like this:"
- @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/groonga.qhcp"
- @echo "To view the help file:"
- @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/groonga.qhc"
+SUBDIRS = ja
-latex: sphinx-ensure-updated
- for language in $(LANGUAGES); do \
- $(SPHINX_BUILD_COMMAND) \
- -Dlanguage=$$language \
- -d $(DOCTREES_BASE)/latex/$$language \
- -b latex \
- $(ALLSPHINXOPTS) \
- $(BUILDDIR)/latex/$$language; \
- echo "Build finished; " \
- "the LaTeX files are in $(BUILDDIR)/latex/$${language}."; \
- done
- @echo
- @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex/*/."
- @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
- "run these through (pdf)latex."
-
-rdoc: sphinx-ensure-updated
- $(SPHINX_BUILD_COMMAND) -b rdoc $(ALLSPHINXOPTS) $(BUILDDIR)/rdoc
- @echo
- @echo "Build finished; the RDoc files are in $(BUILDDIR)/rdoc."
-
-textile: sphinx-ensure-updated
- $(SPHINX_BUILD_COMMAND) -b textile $(ALLSPHINXOPTS) $(BUILDDIR)/textile
- @echo
- @echo "Build finished; the Textile files are in $(BUILDDIR)/textile."
+docdir = $(pkgdatadir)/doc
-changes: sphinx-ensure-updated
- $(SPHINX_BUILD_COMMAND) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
- @echo
- @echo "The overview file is in $(BUILDDIR)/changes."
+update-examples:
+ GROONGA=$(GROONGA) $(srcdir)/source/update_execution_example.py
gettext: sphinx-ensure-updated
$(SPHINX_BUILD_COMMAND) -b gettext $(ALLSPHINXOPTS) $(BUILDDIR)/pot
- @echo
- @echo "Build finished; the pot files are in $(BUILDDIR)/pot."
-
-linkcheck: sphinx-ensure-updated
- $(SPHINX_BUILD_COMMAND) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
- @echo
- @echo "Link check complete; look for any errors in the above output " \
- "or in $(BUILDDIR)/linkcheck/output.txt."
-
-doctest: sphinx-ensure-updated
- $(SPHINX_BUILD_COMMAND) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
- @echo "Testing of doctests in the sources finished, look at the " \
- "results in $(BUILDDIR)/doctest/output.txt."
-
-pdf: sphinx-ensure-updated
- for language in $(LANGUAGES); do \
- $(SPHINX_BUILD_COMMAND) \
- -Dlanguage=$$language \
- -d $(DOCTREES_BASE)/pdf/$$language \
- -b pdf \
- $(ALLSPHINXOPTS) \
- $(BUILDDIR)/pdf/$$language; \
- echo "Build finished. " \
- "The PDF files are in $(BUILDDIR)/pdf/$${language}."; \
- done
- @echo
- @echo "Build finished. The PDF files are in $(BUILDDIR)/pdf."
-
-update-examples:
- GROONGA=$(GROONGA) $(srcdir)/source/update_execution_example.py
add-language: gettext
test -n "$(LANGUAGE)" || \
@@ -290,141 +64,6 @@ nobase_dist_doc_DATA = \
$(source_files) \
$(html_files)
-# find source -type f -not -name '*.pyc' | sort | sed -e 's,^,\t,g'
-source_files = \
- source/__init__.py \
- source/characteristic.txt \
- source/command_version.txt \
- source/commands.txt \
- source/commands/cache_limit.txt \
- source/commands/check.txt \
- source/commands/clearlock.txt \
- source/commands/column_create.txt \
- source/commands/column_list.txt \
- source/commands/column_remove.txt \
- source/commands/define_selector.txt \
- source/commands/defrag.txt \
- source/commands/delete.txt \
- source/commands/dump.txt \
- source/commands/load.txt \
- source/commands/log_level.txt \
- source/commands/log_put.txt \
- source/commands/log_reopen.txt \
- source/commands/quit.txt \
- source/commands/select.txt \
- source/commands/shutdown.txt \
- source/commands/status.txt \
- source/commands/suggest.txt \
- source/commands/table_create.txt \
- source/commands/table_list.txt \
- source/commands/table_remove.txt \
- source/commands/view_add.txt \
- source/commands_not_implemented/add.txt \
- source/commands_not_implemented/get.txt \
- source/commands_not_implemented/set.txt \
- source/conf.py \
- source/developer.txt \
- source/developer/com.txt \
- source/developer/document.txt \
- source/developer/query.txt \
- source/developer/test.txt \
- source/example/tutorial01-1.log \
- source/example/tutorial01-10.log \
- source/example/tutorial01-11.log \
- source/example/tutorial01-12.log \
- source/example/tutorial01-13.log \
- source/example/tutorial01-14.log \
- source/example/tutorial01-15.log \
- source/example/tutorial01-16.log \
- source/example/tutorial01-17.log \
- source/example/tutorial01-2.log \
- source/example/tutorial01-3.log \
- source/example/tutorial01-4.log \
- source/example/tutorial01-5.log \
- source/example/tutorial01-6.log \
- source/example/tutorial01-7.log \
- source/example/tutorial01-8.log \
- source/example/tutorial01-9.log \
- source/example/tutorial02-1.log \
- source/example/tutorial02-2.log \
- source/example/tutorial02-3.log \
- source/example/tutorial03-1.log \
- source/example/tutorial03-2.log \
- source/example/tutorial03-3.log \
- source/example/tutorial04-1.log \
- source/example/tutorial04-2.log \
- source/example/tutorial04-3.log \
- source/example/tutorial04-4.log \
- source/example/tutorial04-5.log \
- source/example/tutorial04-6.log \
- source/example/tutorial04-7.log \
- source/example/tutorial05-1.log \
- source/example/tutorial05-2.log \
- source/example/tutorial05-3.log \
- source/example/tutorial05-4.log \
- source/example/tutorial05-5.log \
- source/example/tutorial05-6.log \
- source/example/tutorial06-1.log \
- source/example/tutorial06-2.log \
- source/example/tutorial06-3.log \
- source/example/tutorial06-4.log \
- source/example/tutorial06-5.log \
- source/example/tutorial06-6.log \
- source/example/tutorial06-7.log \
- source/example/tutorial07-1.log \
- source/example/tutorial07-2.log \
- source/example/tutorial07-3.log \
- source/example/tutorial07-4.log \
- source/example/tutorial08-1.log \
- source/example/tutorial10-1.log \
- source/example/tutorial10-10.log \
- source/example/tutorial10-2.log \
- source/example/tutorial10-3.log \
- source/example/tutorial10-4.log \
- source/example/tutorial10-5.log \
- source/example/tutorial10-6.log \
- source/example/tutorial10-7.log \
- source/example/tutorial10-8.log \
- source/example/tutorial10-9.log \
- source/execfile.txt \
- source/expr.txt \
- source/functions.txt \
- source/functions/edit_distance.txt \
- source/functions/geo_distance.txt \
- source/functions/geo_in_circle.txt \
- source/functions/geo_in_rectangle.txt \
- source/functions/now.txt \
- source/functions/rand.txt \
- source/grnslap.txt \
- source/grntest.txt \
- source/http.txt \
- source/index.txt \
- source/install.txt \
- source/limitations.txt \
- source/news.txt \
- source/process.txt \
- source/pseudo_column.txt \
- source/rdoc.py \
- source/reference.txt \
- source/spec.txt \
- source/spec/search.txt \
- source/textile.py \
- source/troubleshooting.txt \
- source/troubleshooting/different_results_with_the_same_keyword.txt \
- source/tutorial.txt \
- source/tutorial/tutorial01.txt \
- source/tutorial/tutorial02.txt \
- source/tutorial/tutorial03.txt \
- source/tutorial/tutorial04.txt \
- source/tutorial/tutorial05.txt \
- source/tutorial/tutorial06.txt \
- source/tutorial/tutorial07.txt \
- source/tutorial/tutorial08.txt \
- source/tutorial/tutorial09.txt \
- source/tutorial/tutorial10.txt \
- source/type.txt \
- source/update_execution_example.py
-
# find html -type f | sort | sed -e 's,^,\t,g'
html_files = \
html/.buildinfo \
Added: doc/ja/Makefile.am (+3 -0) 100644
===================================================================
--- /dev/null
+++ doc/ja/Makefile.am 2011-05-17 09:44:21 +0000 (7b22898)
@@ -0,0 +1,3 @@
+DOC_LANGUAGE = ja
+
+include $(top_srcdir)/build/makefiles/sphinx.mk