mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 18:15:28 +03:00
dcos
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
|
||||
set shell := ["bash", "-c"]
|
||||
|
||||
# Variables
|
||||
sphinxopts := ""
|
||||
sphinxbuild := "sphinx-build"
|
||||
sourcedir := "."
|
||||
builddir := "_build"
|
||||
|
||||
# Default recipe (help)
|
||||
default:
|
||||
@{{sphinxbuild}} -M help "{{sourcedir}}" "{{builddir}}" {{sphinxopts}}
|
||||
|
||||
# Build all language versions
|
||||
build-all:
|
||||
{{sphinxbuild}} -b html -D language=ru {{sourcedir}} {{builddir}}/html/ru
|
||||
{{sphinxbuild}} -b html -D language=en {{sourcedir}} {{builddir}}/html/en
|
||||
|
||||
# Live preview for Russian version
|
||||
live-ru:
|
||||
sphinx-autobuild -b html . _build/html/ru -D language=ru
|
||||
|
||||
# Live preview for English version
|
||||
live-en:
|
||||
sphinx-autobuild -b html . _build/html/en -D language=en
|
||||
|
||||
# Update translation files
|
||||
update-langs:
|
||||
{{sphinxbuild}} -b gettext . _build/gettext
|
||||
sphinx-intl update -p _build/gettext -l en
|
||||
|
||||
# Generic build target (html, latex, etc.)
|
||||
build target:
|
||||
{{sphinxbuild}} -M {{target}} "{{sourcedir}}" "{{builddir}}" {{sphinxopts}}
|
||||
Reference in New Issue
Block a user