From 4f2c1b86ebe916991d70c490b60d9552a28496a4 Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Fri, 1 Mar 2013 18:16:29 +0100 Subject: [PATCH] Allow for out-of-tree Sphinx builds --- doc/manual-src/en/Makefile.am | 4 +++- doc/manual-src/en/conf.py.in | 2 +- doc/manual-src/pt/Makefile.am | 4 +++- doc/manual-src/pt/conf.py.in | 2 +- doc/manual-src/ru/Makefile.am | 4 +++- doc/manual-src/ru/conf.py.in | 2 +- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/doc/manual-src/en/Makefile.am b/doc/manual-src/en/Makefile.am index 7c042e58..2a8c12a5 100644 --- a/doc/manual-src/en/Makefile.am +++ b/doc/manual-src/en/Makefile.am @@ -9,7 +9,7 @@ BUILDDIR = _build # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter -ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) -c . @srcdir@ # Configurations for aria2. man_MANS = $(BUILDDIR)/man/aria2c.1 @@ -136,3 +136,5 @@ doctest: $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest @echo "Testing of doctests in the sources finished, look at the " \ "results in $(BUILDDIR)/doctest/output.txt." + +clean-local: docclean diff --git a/doc/manual-src/en/conf.py.in b/doc/manual-src/en/conf.py.in index 8fc930d5..a59a3526 100644 --- a/doc/manual-src/en/conf.py.in +++ b/doc/manual-src/en/conf.py.in @@ -121,7 +121,7 @@ html_theme_options = {'bodyfont':'roboto, sans-serif', # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static/default2.css'] +html_static_path = ['@srcdir@/_static/default2.css'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. diff --git a/doc/manual-src/pt/Makefile.am b/doc/manual-src/pt/Makefile.am index 5040a727..cc6590cf 100644 --- a/doc/manual-src/pt/Makefile.am +++ b/doc/manual-src/pt/Makefile.am @@ -9,7 +9,7 @@ BUILDDIR = _build # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter -ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) -c . @srcdir@ # Configurations for aria2. mandir = @mandir@/pt @@ -137,3 +137,5 @@ doctest: $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest @echo "Testing of doctests in the sources finished, look at the " \ "results in $(BUILDDIR)/doctest/output.txt." + +clean-local: docclean diff --git a/doc/manual-src/pt/conf.py.in b/doc/manual-src/pt/conf.py.in index 1d26456d..38e15908 100644 --- a/doc/manual-src/pt/conf.py.in +++ b/doc/manual-src/pt/conf.py.in @@ -121,7 +121,7 @@ html_short_title = u'Documentação aria2 em Português' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static/default2.css'] +html_static_path = ['@srcdir@/_static/default2.css'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. diff --git a/doc/manual-src/ru/Makefile.am b/doc/manual-src/ru/Makefile.am index f0b9de04..643c75a6 100644 --- a/doc/manual-src/ru/Makefile.am +++ b/doc/manual-src/ru/Makefile.am @@ -9,7 +9,7 @@ BUILDDIR = _build # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter -ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) -c . @srcdir@ # Configurations for aria2. mandir = @mandir@/ru @@ -137,3 +137,5 @@ doctest: $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest @echo "Testing of doctests in the sources finished, look at the " \ "results in $(BUILDDIR)/doctest/output.txt." + +clean-local: docclean diff --git a/doc/manual-src/ru/conf.py.in b/doc/manual-src/ru/conf.py.in index e0161336..4c05930c 100644 --- a/doc/manual-src/ru/conf.py.in +++ b/doc/manual-src/ru/conf.py.in @@ -121,7 +121,7 @@ html_theme_options = {'bodyfont':'roboto, sans-serif', # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static/default2.css'] +html_static_path = ['@srcdir@/_static/default2.css'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format.