add new lang

This commit is contained in:
2025-10-15 19:16:34 +03:00
parent 7f5234b67a
commit 02687f5acd
2 changed files with 7 additions and 6 deletions
+5 -5
View File
@@ -7,6 +7,11 @@ SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build SPHINXBUILD ?= sphinx-build
SOURCEDIR = . SOURCEDIR = .
BUILDDIR = _build 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". # Put it first so that "make" without argument is like "make help".
help: help:
@@ -15,11 +20,6 @@ help:
live-ru: live-ru:
sphinx-autobuild -b html . _build/html/ru -D language=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: update-langs:
sphinx-build -b gettext . _build/gettext sphinx-build -b gettext . _build/gettext
sphinx-intl update -p _build/gettext -l en sphinx-intl update -p _build/gettext -l en
+2 -1
View File
@@ -10,6 +10,7 @@ project = "Argenta"
copyright = "2025, kolo" copyright = "2025, kolo"
author = "kolo" author = "kolo"
root_doc = "index" root_doc = "index"
language = 'ru'
# -- General configuration --------------------------------------------------- # -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
@@ -30,7 +31,7 @@ html_static_path = ["_static"]
html_context = { html_context = {
"languages": [ "languages": [
("English", "/%s/", "en"), ("English", "/en/%s/", "en"),
("Русский", "/ru/%s/", "ru"), ("Русский", "/ru/%s/", "ru"),
] ]
} }