Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
91bfefcc
"...git@developer.sourcefind.cn:OpenDAS/opencompass.git" did not exist on "58a57a4c45d881be27ecaf7fb1a673fbf905e72f"
Unverified
Commit
91bfefcc
authored
May 20, 2022
by
liuzhe-lz
Committed by
GitHub
May 20, 2022
Browse files
Update doc Makefile (#4754)
parent
4feab0e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
28 deletions
+20
-28
docs/Makefile
docs/Makefile
+17
-18
pipelines/fast-test.yml
pipelines/fast-test.yml
+3
-10
No files found.
docs/Makefile
View file @
91bfefcc
# Minimal makefile for Sphinx documentation
.PHONY
:
all
#
all
:
en zh
# You can set these variables from the command line.
.PHONY
:
en
SPHINXOPTS
=
en
:
SPHINXBUILD
=
sphinx-build
## English ##
SOURCEDIR
=
source
sphinx-build
-T
source
build/html
BUILDDIR
=
build
# Put it first so that "make" without argument is like "make help".
.PHONY
:
zh
help
:
zh
:
@
$(SPHINXBUILD)
-M
help
"
$(SOURCEDIR)
"
"
$(BUILDDIR)
"
$(SPHINXOPTS)
$(O)
## Chinese ##
sphinx-build
-T
-D
language
=
zh
source
build/html_zh
# Build message catelogs for translation
# Build message catelogs for translation
.PHONY
:
i18n
i18n
:
i18n
:
@
$(SPHINXBUILD)
-
M
getpartialtext
"
$(SOURCEDIR)
"
"
$(BUILDDIR)
"
$(SPHINXOPTS)
$(O)
sphinx-build
-
b
getpartialtext
source
build/i18n
sphinx-intl update
-p
"
$(BUILDDIR)
/getpartialtext"
-d
"
$(SOURCEDIR)
/locales
"
-l
zh
sphinx-intl update
-p
build/i18n
-d
source
/locales
-l
zh
.PHONY
:
help Makefile
.PHONY
:
clean
clean
:
# Catch-all target: route all unknown targets to Sphinx using the new
rm
-rf
build
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
rm
-rf
source
/reference/_modules
%
:
Makefile
@
$(SPHINXBUILD)
-M
$@
"
$(SOURCEDIR)
"
"
$(BUILDDIR)
"
$(SPHINXOPTS)
$(O)
pipelines/fast-test.yml
View file @
91bfefcc
...
@@ -19,10 +19,6 @@ stages:
...
@@ -19,10 +19,6 @@ stages:
parameters
:
parameters
:
platform
:
ubuntu-latest
platform
:
ubuntu-latest
-
script
:
|
sudo apt-get install -y pandoc
displayName
:
Install pandoc
-
script
:
|
-
script
:
|
cd docs
cd docs
rstcheck -r source \
rstcheck -r source \
...
@@ -33,30 +29,27 @@ stages:
...
@@ -33,30 +29,27 @@ stages:
-
script
:
|
-
script
:
|
cd docs
cd docs
make -e SPHINXOPTS="
-W --keep-going -T -q
"
html
sphinx-build
-W --keep-going -T -q
source build/
html
displayName
:
Sphinx sanity check
displayName
:
Sphinx sanity check
-
script
:
|
-
script
:
|
set -e
set -e
cd docs
cd docs
rm -rf build
sudo apt-get install -y gettext
sudo apt-get install -y gettext
python tools/translation_patch.py
python tools/translation_patch.py
make -e SPHINXOPTS="
-W --keep-going -T -q -D language=
'
zh
'"
html
sphinx-build
-W --keep-going -T -q -D language=zh
source build/
html
_zh
displayName
:
Sphinx sanity check (Chinese)
displayName
:
Sphinx sanity check (Chinese)
-
script
:
|
-
script
:
|
set -e
set -e
cd docs
cd docs
rm -rf build
make i18n
make i18n
git diff --exit-code source/locales
git diff --exit-code source/locales
displayName
:
Translation up-to-date
displayName
:
Translation up-to-date
-
script
:
|
-
script
:
|
cd docs
cd docs
rm -rf build
sphinx-build -b linkcheck -W --keep-going -T -q source build/linkcheck
make -e SPHINXOPTS="-W -T -b linkcheck -q --keep-going" html
displayName
:
External links integrity check
displayName
:
External links integrity check
-
job
:
python
-
job
:
python
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment