mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 04:29:41 +00:00
update project structure
This commit is contained in:
@ -14,7 +14,7 @@ level = 1
|
||||
|
||||
[output.html]
|
||||
git-repository-url = "https://github.com/sunface/rust-by-practice"
|
||||
edit-url-template = "https://github.com/sunface/rust-by-practice/edit/master/en/{path}"
|
||||
edit-url-template = "https://github.com/sunface/rust-by-practice/edit/master/{path}"
|
||||
|
||||
[rust]
|
||||
edition = "2021"
|
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
|
1
en/book
1
en/book
Submodule en/book deleted from 036e93c39b
21
en/deploy
21
en/deploy
@ -1,21 +0,0 @@
|
||||
## this script deploys the static website of course.rs to github pages
|
||||
|
||||
## 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/
|
||||
|
||||
## 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
|
0
en/src/.gitignore → src/.gitignore
vendored
0
en/src/.gitignore → src/.gitignore
vendored
@ -16,7 +16,7 @@
|
||||
- [Slice](compound-types/slice.md)
|
||||
- [Tuple](compound-types/tuple.md)
|
||||
- [Struct](compound-types/struct.md)
|
||||
- [Enum todo](compound-types/enum.md)
|
||||
- [Enum](compound-types/enum.md)
|
||||
- [Flow Control todo](flow-control.md)
|
||||
- [Pattern Match todo](pattern-match/intro.md)
|
||||
- [match, if let](pattern-match/match-iflet.md)
|
@ -16,7 +16,7 @@
|
||||
- [切片](compound-types/slice.md)
|
||||
- [元组](compound-types/tuple.md)
|
||||
- [结构体](compound-types/struct.md)
|
||||
- [枚举 undo](compound-types/enum.md)
|
||||
- [枚举](compound-types/enum.md)
|
||||
- [流程控制 todo](flow-control.md)
|
||||
- [模式匹配 todo](pattern-match/intro.md)
|
||||
- [match 和 if let](pattern-match/match-iflet.md)
|
||||
|
Reference in New Issue
Block a user