Update and build en, es

main
root 2023-11-26 20:33:43 -07:00
parent 586b277f01
commit e9b964f75f
1 changed files with 15 additions and 1 deletions

View File

@ -8,8 +8,10 @@ SOURCEDIR = docs/source
BUILDDIR = docs/build
AUTOBUILDOPTS = --host 127.0.0.1 --port 8000 --ignore "*.swp" --ignore "*.swx"
GETTEXT_BUILD = gettext_build
UPDATE_LOCALE_EN = sphinx-intl update -p docs/locale/gettext -d docs/locale -l en
UPDATE_LOCALE_ES = sphinx-intl update -p docs/locale/gettext -d docs/locale -l es
.PHONY: html livehtml clean_sphinx clean gettext_build
.PHONY: html livehtml clean_sphinx clean gettext_build update_locale_en update_locale_es build_html_en build_html_es
html:
cd docs && make $(SPHINXOPTS) html
@ -25,3 +27,15 @@ clean:
gettext_build:
$(SPHINXBUILD) -b gettext -c $(SOURCEDIR) -d $(BUILDDIR)/doctrees/$(GETTEXT_BUILD) $(SOURCEDIR) $(BUILDDIR)/locale/gettext
update_locale_en:
$(UPDATE_LOCALE_EN)
update_locale_es:
$(UPDATE_LOCALE_ES)
build_html_en:
$(SPHINXBUILD) -b html -d $(BUILDDIR)/doctrees -D language=en $(SOURCEDIR) $(BUILDDIR)/html/en
build_html_es:
$(SPHINXBUILD) -b html -d $(BUILDDIR)/doctrees -D language=es $(SOURCEDIR) $(BUILDDIR)/html/es