From 02687f5acdf87c3009860a7da3a7c5cff97b1228 Mon Sep 17 00:00:00 2001 From: kolo Date: Wed, 15 Oct 2025 19:16:34 +0300 Subject: [PATCH] add new lang --- docs/Makefile | 10 +++++----- docs/conf.py | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/Makefile b/docs/Makefile index 0c65a7c..edad57f 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -7,6 +7,11 @@ SPHINXOPTS ?= SPHINXBUILD ?= sphinx-build SOURCEDIR = . BUILDDIR = _build +LANGUAGES = en ru + +build-all: + sphinx-build -b html -D language=ru $(SOURCEDIR) $(BUILDDIR)/html/ru + sphinx-build -b html -D language=en $(SOURCEDIR) $(BUILDDIR)/html/en # Put it first so that "make" without argument is like "make help". help: @@ -15,11 +20,6 @@ help: live-ru: sphinx-autobuild -b html . _build/html/ru -D language=ru -serve-all: - sphinx-build -b html . _build/html/ -D language=en - sphinx-build -b html . _build/html/ru -D language=ru - python -m http.server -d _build/html - update-langs: sphinx-build -b gettext . _build/gettext sphinx-intl update -p _build/gettext -l en diff --git a/docs/conf.py b/docs/conf.py index 3bba94d..313c7b7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -10,6 +10,7 @@ project = "Argenta" copyright = "2025, kolo" author = "kolo" root_doc = "index" +language = 'ru' # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration @@ -30,7 +31,7 @@ html_static_path = ["_static"] html_context = { "languages": [ - ("English", "/%s/", "en"), + ("English", "/en/%s/", "en"), ("Русский", "/ru/%s/", "ru"), ] }