mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-08-11 14:04:46 +00:00
update project structure
This commit is contained in:
28
deploy.sh
28
deploy.sh
@@ -1,7 +1,25 @@
|
||||
cd en
|
||||
./deploy
|
||||
## this script deploys the static website of course.rs to github pages
|
||||
|
||||
cd ../zh-CN
|
||||
./deploy
|
||||
## build static website for book
|
||||
mdbook build
|
||||
## copy CNAME info to book dir
|
||||
cp ./assets/CNAME ./book/
|
||||
cp ./assets/*.html ./book/
|
||||
cp ./assets/sitemap.xml ./book/
|
||||
|
||||
cd ..
|
||||
## init git repo
|
||||
cd book
|
||||
git init
|
||||
git config user.name "sunface"
|
||||
git config user.email "cto@188.com"
|
||||
git add .
|
||||
git commit -m 'deploy'
|
||||
git branch -M gh-pages
|
||||
git remote add origin https://github.com/sunface/rust-by-practice
|
||||
|
||||
## push to github pages
|
||||
git push -u -f origin gh-pages
|
||||
|
||||
## deploy zh-CN
|
||||
cd ./zh-CN
|
||||
./deploy
|
Reference in New Issue
Block a user