归档 0.8 版本,增加离线阅读

This commit is contained in:
khs1994
2017-11-22 22:06:02 +08:00
parent c8260780d9
commit 2535813859
7 changed files with 111 additions and 0 deletions

19
.travis/docker-entrypoint.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/sh
START=`date "+%F %T"`
if [ $1 = "sh" ];then sh ; exit 0; fi
rm -rf node_modules _book
cp -a . ../gitbook
cd ../gitbook
main(){
if [ "$1" = build ];then gitbook build; cp -a _book ../gitbook-src; echo $START; date "+%F %T"; exit 0; fi
gitbook serve
exit 0
}
main $1 $2 $3