First commit
This commit is contained in:
36
doc/build.sh
Executable file
36
doc/build.sh
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env sh
|
||||
# _VERBOSE_=1
|
||||
# _TEST_=1
|
||||
|
||||
BASE_DIR=$(cd "$(dirname "$0")" && pwd)
|
||||
ROOT_DIR=$(realpath "$BASE_DIR/..")
|
||||
SCRIPTS_DIR="$ROOT_DIR/scripts"
|
||||
|
||||
source "$SCRIPTS_DIR/common/echo.sh"
|
||||
source "$SCRIPTS_DIR/common/mkdir.sh"
|
||||
source "$SCRIPTS_DIR/common/detect.sh"
|
||||
|
||||
_detect "doxygen"
|
||||
_detect "pdflatex"
|
||||
|
||||
source "$BASE_DIR/langs.sh"
|
||||
DOXYFILE="api.doxyfile"
|
||||
OUTPUT="$BASE_DIR/output"
|
||||
|
||||
for lang in "${LANGS[@]}"; do
|
||||
_echo_s "Build doc $lang"
|
||||
cd "$BASE_DIR/$lang"
|
||||
if [ -f "$DOXYFILE" ]; then
|
||||
_mkdir "$OUTPUT/$lang"
|
||||
_echo_i "doxygen $DOXYFILE"
|
||||
doxygen $DOXYFILE
|
||||
if [ -f "$OUTPUT/$lang/latex/Makefile" ]; then
|
||||
_echo_in "doxygen make latex"
|
||||
cd "$OUTPUT/$lang/latex" && make
|
||||
[ -f "refman.pdf" ] && mv "refman.pdf" "../mynteye-apidoc.pdf"
|
||||
fi
|
||||
_echo_d "doxygen completed"
|
||||
else
|
||||
_echo_e "$DOXYFILE not found"
|
||||
fi
|
||||
done
|
||||
6
doc/langs.sh
Normal file
6
doc/langs.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env sh
|
||||
LANGS=(
|
||||
en
|
||||
zh-Hans
|
||||
)
|
||||
[ $# -gt 0 ] && echo "LANGS=(${LANGS[@]})"
|
||||
3
doc/static/custom.css
vendored
Normal file
3
doc/static/custom.css
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
#projectlogo img {
|
||||
margin: 1em 0.5em 1em 1em;
|
||||
}
|
||||
BIN
doc/static/images/icon.png
vendored
Normal file
BIN
doc/static/images/icon.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
2473
doc/zh-Hans/api.doxyfile
Normal file
2473
doc/zh-Hans/api.doxyfile
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user