kopia lustrzana https://github.com/OpenDroneMap/docs
modify Makefile flows (#93)
rodzic
6e7379df16
commit
de3f0409c6
13
Makefile
13
Makefile
|
@ -14,13 +14,20 @@ help:
|
|||
|
||||
.PHONY: help Makefile
|
||||
|
||||
# this will update `arguments.rst` to match arguments in the ODM code
|
||||
autogenerate:
|
||||
python scripts/extract_odm_strings.py https://raw.githubusercontent.com/OpenDroneMap/ODM/master/opendm/config.py scripts/arguments.template.rst source/arguments.rst
|
||||
|
||||
livehtml: autogenerate
|
||||
update: autogenerate
|
||||
sphinx-build -b gettext source source/locale/en/pot
|
||||
tx push --source
|
||||
tx pull --use-git-timestamps -l "sw,ar,es,fr,te,fil"
|
||||
make allerr
|
||||
|
||||
livehtml:
|
||||
sphinx-autobuild --open-browser -H 0.0.0.0 -b html "$(SOURCEDIR)" "$(BUILDDIR)"
|
||||
|
||||
deploy: autogenerate
|
||||
deploy:
|
||||
@$(SPHINXBUILD) -b html "$(SOURCEDIR)" "$(BUILDDIR)/html" -nW
|
||||
@$(SPHINXBUILD) -b html "$(SOURCEDIR)" "$(BUILDDIR)/html/sw" -D language='sw' -nW
|
||||
@$(SPHINXBUILD) -b html "$(SOURCEDIR)" "$(BUILDDIR)/html/ar" -D language='ar' -nW
|
||||
|
@ -32,6 +39,8 @@ deploy: autogenerate
|
|||
# -W Turn warnings into errors that stop the build.
|
||||
# for more details about the options see https://www.sphinx-doc.org/en/1.8/man/sphinx-build.html#options
|
||||
|
||||
# `allerr` runs without nit-picky mode, so that an error doesn't halt the build
|
||||
# it will log all errors that need to be fixed in the translations (generally syntax errors)
|
||||
allerr:
|
||||
@$(SPHINXBUILD) -b html "$(SOURCEDIR)" "$(BUILDDIR)/html"
|
||||
@$(SPHINXBUILD) -b html "$(SOURCEDIR)" "$(BUILDDIR)/html/sw" -D language='sw'
|
||||
|
|
Ładowanie…
Reference in New Issue