From e9b964f75f867ddb17ebc66a18ba9021a9601657 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 26 Nov 2023 20:33:43 -0700 Subject: [PATCH] Update and build en, es --- Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0f064f3..6da8734 100644 --- a/Makefile +++ b/Makefile @@ -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