Change doc output dir & fix make pdf
This commit is contained in:
parent
d7271ffe07
commit
4aa6a58797
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,8 +5,6 @@ _build/
|
||||||
_install/
|
_install/
|
||||||
_output/
|
_output/
|
||||||
|
|
||||||
/doc/output/
|
|
||||||
|
|
||||||
/get-pip.py
|
/get-pip.py
|
||||||
|
|
||||||
/*INFO*
|
/*INFO*
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -26,7 +26,7 @@ opendoc: apidoc
|
||||||
@$(call echo,Make $@)
|
@$(call echo,Make $@)
|
||||||
@$(shell $(SH) ./doc/langs.sh 1); \
|
@$(shell $(SH) ./doc/langs.sh 1); \
|
||||||
for lang in "$${LANGS[@]}"; do \
|
for lang in "$${LANGS[@]}"; do \
|
||||||
html=./doc/output/$$lang/html/index.html; \
|
html=./doc/_output/$$lang/html/index.html; \
|
||||||
[ -f "$$html" ] && $(SH) ./scripts/open.sh $$html; \
|
[ -f "$$html" ] && $(SH) ./scripts/open.sh $$html; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ clean:
|
||||||
@$(MAKE) cleanlog
|
@$(MAKE) cleanlog
|
||||||
|
|
||||||
cleanall: clean
|
cleanall: clean
|
||||||
@$(call rm,./doc/output/)
|
@$(call rm,./doc/_output/)
|
||||||
@$(call rm,./tests/gtest/_build/)
|
@$(call rm,./tests/gtest/_build/)
|
||||||
@$(call rm,./third_party/glog/_build/)
|
@$(call rm,./third_party/glog/_build/)
|
||||||
@$(FIND) . -type f -name ".DS_Store" -print0 | xargs -0 rm -f
|
@$(FIND) . -type f -name ".DS_Store" -print0 | xargs -0 rm -f
|
||||||
|
|
17
doc/build.sh
17
doc/build.sh
|
@ -15,7 +15,20 @@ _detect "pdflatex" 1
|
||||||
|
|
||||||
source "$BASE_DIR/langs.sh"
|
source "$BASE_DIR/langs.sh"
|
||||||
DOXYFILE="api.doxyfile"
|
DOXYFILE="api.doxyfile"
|
||||||
OUTPUT="$BASE_DIR/output"
|
OUTPUT="$BASE_DIR/_output"
|
||||||
|
|
||||||
|
# \usepackage{CJKutf8}
|
||||||
|
# \begin{document}
|
||||||
|
# \begin{CJK}{UTF8}{gbsn}
|
||||||
|
# ...
|
||||||
|
# \end{CJK}
|
||||||
|
# \end{document}
|
||||||
|
_texcjk() {
|
||||||
|
tex="$1"; shift;
|
||||||
|
_echo_in "add cjk to $tex"
|
||||||
|
sed -i "" -e $'s/^\\\\begin{document}$/\\\\usepackage{CJKutf8}\\\n\\\\begin{document}\\\n\\\\begin{CJK}{UTF8}{gbsn}/g' $tex
|
||||||
|
sed -i "" -e $'s/^\\\\end{document}$/\\\\end{CJK}\\\n\\\\end{document}/g' $tex
|
||||||
|
}
|
||||||
|
|
||||||
for lang in "${LANGS[@]}"; do
|
for lang in "${LANGS[@]}"; do
|
||||||
_echo_s "Build doc $lang"
|
_echo_s "Build doc $lang"
|
||||||
|
@ -27,7 +40,7 @@ for lang in "${LANGS[@]}"; do
|
||||||
doxygen $DOXYFILE
|
doxygen $DOXYFILE
|
||||||
if [ $pdflatex_FOUND ] && [ -f "$OUTPUT/$lang/latex/Makefile" ]; then
|
if [ $pdflatex_FOUND ] && [ -f "$OUTPUT/$lang/latex/Makefile" ]; then
|
||||||
_echo_in "doxygen make latex"
|
_echo_in "doxygen make latex"
|
||||||
cd "$OUTPUT/$lang/latex" && make
|
cd "$OUTPUT/$lang/latex" && _texcjk refman.tex && make
|
||||||
[ -f "refman.pdf" ] && mv "refman.pdf" "../mynteye-apidoc.pdf"
|
[ -f "refman.pdf" ] && mv "refman.pdf" "../mynteye-apidoc.pdf"
|
||||||
fi
|
fi
|
||||||
_echo_d "doxygen completed"
|
_echo_d "doxygen completed"
|
||||||
|
|
|
@ -58,7 +58,7 @@ PROJECT_LOGO = ../static/images/icon.png
|
||||||
# entered, it will be relative to the location where doxygen was started. If
|
# entered, it will be relative to the location where doxygen was started. If
|
||||||
# left blank the current directory will be used.
|
# left blank the current directory will be used.
|
||||||
|
|
||||||
OUTPUT_DIRECTORY = ../output/zh-Hans
|
OUTPUT_DIRECTORY = ../_output/zh-Hans
|
||||||
|
|
||||||
# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
|
# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
|
||||||
# directories (in 2 levels) under the output directory of each output format and
|
# directories (in 2 levels) under the output directory of each output format and
|
||||||
|
|
Loading…
Reference in New Issue
Block a user