aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'docs/Makefile')
-rw-r--r--docs/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/Makefile b/docs/Makefile
index 6fdb78c..5607373 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -9,6 +9,7 @@ SOURCEDIR = source
BUILDDIR = _build
SPHINXINTL ?= sphinx-intl
lang ?= zh_CN
+SPHINX ?= sphinx
# Put it first so that "make" without argument is like "make help".
help:
@@ -23,4 +24,8 @@ help:
# update translation command
translate:
- @$(SPHINXINTL) update -p ./build/gettext -l $(lang) $(O) \ No newline at end of file
+ @$(SPHINXINTL) update -p ./build/gettext -l $(lang) $(O)
+
+# build docs
+docs build:
+ @pdm run $(SPHINXBUILD) "$(SOURCEDIR)" "$(BUILDDIR)" $(O) \ No newline at end of file