roll back

This commit is contained in:
sunface
2022-02-23 15:22:14 +08:00
parent f15bccde29
commit ef6c4f80a1
174 changed files with 1 additions and 381 deletions

View File

View File

@ -12,7 +12,6 @@ editor = "ace"
enable = true
[output.html]
additional-js = ["assets/lang.js"]
git-repository-url = "https://github.com/sunface/rust-exercise"
edit-url-template = "https://github.com/sunface/rust-exercise/edit/master/{path}"

View File

@ -15,7 +15,7 @@ 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/course-rs/rust-exercise
git remote add origin https://github.com/sunface/rust-exercise
## push to github pages
git push -u -f origin gh-pages

1
zh/.gitignore vendored
View File

@ -1 +0,0 @@
book

View File

@ -1 +0,0 @@
zh.exercise.rs

View File

@ -1,20 +0,0 @@
[book]
title = "Rust Exercise"
description = "A set of exercises and examples to pratice various aspects of Rust, also for the rust course (book) at https://course.rs"
authors = ["sunface, https://im.dev"]
language = "en"
[output.html.playpen]
editable = true
editor = "ace"
[output.html.fold]
enable = true
[output.html]
additional-js = ["assets/lang.js"]
git-repository-url = "https://github.com/sunface/rust-exercise"
edit-url-template = "https://github.com/sunface/rust-exercise/edit/master/{path}"
[rust]
edition = "2021"

View File

@ -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/course-rs/rust-exercise
## push to github pages
git push -u -f origin gh-pages

View File

@ -1,79 +0,0 @@
# Summary
- [Why Exercise.rs](why-exercise.md)
- [Variables](variables.md)
- [Basic Types](basic-types/intro.md)
- [Numbers](basic-types/numbers.md)
- [Char, Bool and Unit](basic-types/char-bool-unit.md)
- [Statements and Expressions](basic-types/statements-expressions.md)
- [Functions](basic-types/functions.md)
- [Ownership and Borrowing](ownership/intro.md)
- [Ownership](ownership/ownership.md)
- [Reference and Borrowing](ownership/borrowing.md)
- [Compound Types](compound-types/intro.md)
- [string and slice](compound-types/string-slice.md)
- [tuple](compound-types/tuple.md)
- [struct](compound-types/struct.md)
- [enum](compound-types/enum.md)
- [array](compound-types/array.md)
- [Flow Control](flow-control.md)
- [Pattern Match](pattern-match/intro.md)
- [match, if let](pattern-match/match-iflet.md)
- [Option destructing](pattern-match/option.md)
- [Patterns](pattern-match/patterns.md)
- [Method](method.md)
- [Generics and Traits](generics-traits/intro.md)
- [Generics](generics-traits/generics.md)
- [Traits](generics-traits/traits.md)
- [Trait Object](generics-traits/trait-object.md)
- [Advance Traits](generics-traits/advance-traits.md)
- [Collection Types](collections/intro.md)
- [Vector](collections/vector.md)
- [HashMap](collections/hashmap.md)
- [Type Conversion](type-conversion.md)
- [Result and panic](result-panic/intro.md)
- [panic!](result-panic/panic.md)
- [result and ?](result-panic/result.md)
- [Crate and module](crate-module/intro.md)
- [Crate](crate-module/crate.md)
- [Module](crate-module/module.md)
- [use and pub](crate-module/use-pub.md)
- [Comments and Docs](comments-docs.md)
- [Formatted output](formatted-output.md)
- [Lifetime](lifetime/intro.md)
- [basic](lifetime/basic.md)
- [&'static and T: 'static](lifetime/static.md)
- [advance](lifetime/advance.md)
- [Functional programing](functional-programing/intro.md)
- [Closure](functional-programing/cloure.md)
- [Iterator](functional-programing/iterator.md)
- [newtype and Sized](newtype-sized.md)
- [Smart pointers](smart-pointers/intro.md)
- [Box](smart-pointers/box.md)
- [Deref](smart-pointers/deref.md)
- [Drop](smart-pointers/drop.md)
- [Rc and Arc](smart-pointers/rc-arc.md)
- [Cell and RefCell](smart-pointers/cell-refcell.md)
- [Weak and Circle reference](weak.md)
- [Self referential](self-referential.md)
- [Threads](threads/intro.md)
- [Basic using](threads/basic-using.md)
- [Message passing](threads/message-passing.md)
- [Sync](threads/sync.md)
- [Atomic](threads/atomic.md)
- [Send and Sync](threads/send-sync.md)
- [Global variables](global-variables.md)
- [Errors](errors.md)
- [unsafe](unsafe.md)
- [macro](macro.md)
- [Tests](tests/intro.md)
- [Write Tests](tests/write-tests.md)
- [Benchmark](tests/benchmark.md)
- [Unit and Integration](tests/unit-integration.md)
- [Assertions](tests/assertions.md)
- [Async/Await](async/intro.md)
- [async and await!](async/async-await.md)
- [Future](async/future.md)
- [Pin and Unpin](async/pin-unpin.md)
- [Stream](async/stream.md)

View File

@ -1 +0,0 @@
# async and await!

View File

@ -1 +0,0 @@
# Future

View File

@ -1 +0,0 @@
# Async/Await

View File

@ -1 +0,0 @@
# Pin and Unpin

View File

@ -1 +0,0 @@
# Stream

View File

@ -1 +0,0 @@
# Char, Bool and Unit

View File

@ -1 +0,0 @@
# Functions

View File

@ -1 +0,0 @@
# Basic Types

Some files were not shown because too many files have changed in this diff Show More