1 Star 0 Fork 4

sunhy / sklearn-doc-zh

forked from OpenDocCN / sklearn-doc-zh 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
run_website.sh 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
片刻小哥哥 提交于 2020-04-01 23:58 . 修改 master 编译的信息
#!/bin/bash
loginfo() { echo "[INFO] $@"; }
logerror() { echo "[ERROR] $@" 1>&2; }
versions="examples"
python3 src/init_gitbook.py versions
python3 src/script.py "home" "book"
rm -rf node_modules/gitbook-plugin-tbfed-pagefooter
gitbook install
python3 src/script.py "home" "powered"
python3 src/script.py "home" "gitalk"
gitbook build ./ _book
# python3 src/script.py "home" "index"
for version in $versions;do
loginfo "==========================================================="
loginfo "开始", ${version}, "版本编译"
echo "cp book.json docs/${version}"
cp book.json docs/${version}
# 替换 book.json 的编辑地址
echo "python3 src/script.py ${version} book"
python3 src/script.py ${version} "book"
echo "cp -r node_modules docs/${version}"
rm -rf docs/${version}/node_modules
cp -r node_modules docs/${version}
echo "gitbook install docs/${version}"
gitbook install docs/${version}
echo "python3 src/script.py ${version} powered"
python3 src/script.py ${version} "powered"
echo "python3 src/script.py ${version} gitalk"
python3 src/script.py ${version} "gitalk"
echo "gitbook build docs/${version} _book/docs/${version}"
gitbook build docs/${version} _book/docs/${version}
# 注释多余的内容
# echo "python3 src/script.py ${version} index"
# python3 src/script.py ${version} "index"
done
# rm -rf /opt/apache-tomcat-9.0.17/webapps/test_book
# cp -r _book /opt/apache-tomcat-9.0.17/webapps/test_book
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sunhy-on/sklearn-doc-zh.git
git@gitee.com:sunhy-on/sklearn-doc-zh.git
sunhy-on
sklearn-doc-zh
sklearn-doc-zh
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891