1 Star 0 Fork 61

felix/teedoc_with_qpydoc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.sh 898 Bytes
一键复制 编辑 原始数据 按行查看 历史
supremeys 提交于 2023-10-27 17:20 . 取消文档标号
# !/bin/bash
css_dest_dir="out/doc/static/css/theme_default/"
js_dest_dir="out/doc/static/js/theme_default/"
image_dest_dir="out/doc/static/image/theme_default/"
css_src_dir="static/css/theme_default/"
js_src_dir="static/js/theme_default/"
image_src_dir="static/image/theme_default/"
teedoc build
if [ ! -d ${css_src_dir} ]; then
# mkdir -p ${css_src_dir}
echo "teedoc 编译失败"
else
cp -R ${css_src_dir}/light.css ${css_dest_dir}/light.css
cp -R ${js_src_dir}/main.js ${js_dest_dir}/main.js
cp -R ${image_src_dir}/indicator.svg ${image_dest_dir}/indicator.svg
cp -R "out/doc/static/" "out/doc/en/static/"
fi
# if [ ! -d ${js_src_dir} ]; then
# cp
# fi
if [ $# == 0 ];then
echo "编译完成,输出文件目录: out/";
else
if [ $1 = "-s" ]; then
echo "本地预览地址: http://127.0.0.1:8000/doc/"
echo "退出预览模式: Ctrl + C"
python -m http.server 8000 -d out/
fi
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/felix_yj/teedoc_with_qpydoc.git
git@gitee.com:felix_yj/teedoc_with_qpydoc.git
felix_yj
teedoc_with_qpydoc
teedoc_with_qpydoc
main

搜索帮助