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
|
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
@@ -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"),
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user