mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
add new lang
This commit is contained in:
+5
-5
@@ -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
|
||||
|
||||
+2
-1
@@ -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"),
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user