1 Star 0 Fork 1

一刀/scrapy-tutorial

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
publish_gitbook.sh 932 Bytes
一键复制 编辑 原始数据 按行查看 历史
xiong neng 提交于 2017-11-30 15:28 . update publish shell
#!/bin/bash
cd doc
# gitbook install
# install the plugins and build the static site
gitbook build
cd ..
# checkout to the gh-pages branch
git checkout gh-pages
# pull the latest updates
git pull origin gh-pages
if [[ "$?" != "0" ]]; then
exit 1
fi
# copy the static site files into the current directory.
\cp -Rf doc/_book/* .
# remove 'node_modules' and '_book' directory
# git clean -fx gitbook/node_modules
# git clean -fx gitbook/_book
rm -rf doc/_book/
# remove website css files, except last one
ccount=`ls website-* | wc -w`
if [[ "$ccount" > 1 ]];then
allcss=($(ls website-*))
c=0
for css in "${allcss[@]}"; do
let "c=c+1"
if [[ $c -ge $ccount ]]; then
break;
fi
rm -f $css
done
fi
# add all files
git add --all
# commit
git commit -a -m "Update docs"
# push to the origin
git push origin gh-pages
# checkout to the master branch
git checkout master
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/yidao620/scrapy-tutorial.git
git@gitee.com:yidao620/scrapy-tutorial.git
yidao620
scrapy-tutorial
scrapy-tutorial
master

搜索帮助