Skip to content

Commit b523e11

Browse files
committed
Makefile modified to build "es" documentation
1 parent 01f2278 commit b523e11

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎Makefile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ sdist: html
3333
.PHONY: html
3434
html:
3535
(cd docs && $(MAKE) html SPHINXOPTS="-c sphinx/pkg")
36+
(cd docs && $(MAKE) html SPHINXOPTS="-c sphinx/pkg" LANGUAGE="es")
3637

3738
# Website copy of documentation
3839
.PHONY: website
3940
website: docs/sphinx/web/templates/base.html
4041
rm -rf docs/website
4142
(cd docs && $(MAKE) html SPHINXOPTS="-c sphinx/web" BUILDDIR="website")
43+
(cd docs && $(MAKE) html SPHINXOPTS="-c sphinx/web" BUILDDIR="website" LANGUAGE="es")
4244

4345
installwebsite: website
4446
(cd docs/website/html && rsync --rsh=ssh --archive --delete --verbose . www.doughellmann.com:/var/www/doughellmann/DocumentRoot/docs/virtualenvwrapper/)
@@ -93,4 +95,4 @@ test-quick:
9395
SUPPORTED_PYTHON_VERSIONS=$(PRIMARY_PYTHON_VERSION) $(MAKE) test-bash
9496

9597
test-install:
96-
bash ./tests/manual_test_install.sh `pwd`/dist "$(VERSION)"
98+
bash ./tests/manual_test_install.sh `pwd`/dist "$(VERSION)"

‎docs/Makefile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ BUILDDIR = build
1010
# Internal variables.
1111
PAPEROPT_a4 = -D latex_paper_size=a4
1212
PAPEROPT_letter = -D latex_paper_size=letter
13-
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
13+
# If doc language is English you don't need to set this variable
14+
LANGUAGE =
15+
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source/$(LANGUAGE)
1416

1517
.PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
1618

0 commit comments

Comments
 (0)