add mdbook

This commit is contained in:
Harald Hoyer 2018-12-20 14:52:06 +01:00
parent e1570bc548
commit 88660684b7
28 changed files with 739 additions and 174 deletions

13
booksrc/SUMMARY.md Normal file
View file

@ -0,0 +1,13 @@
# Summary
- [Chapter 1](./tutorial1.md)
- [Chapter 2](./tutorial2.md)
- [Chapter 3](./tutorial3.md)
- [Chapter 4](./tutorial4.md)
- [Chapter 5](./tutorial5.md)
- [Chapter 6](./tutorial6.md)
- [Chapter 7](./tutorial7.md)
- [Chapter 8](./tutorial8.md)
- [Chapter 9](./tutorial9.md)
- [Chapter 10](./tutorial10.md)
- [Chapter 11](./tutorial11.md)

3
booksrc/tutorial1.md Normal file
View file

@ -0,0 +1,3 @@
~~~rust
{{#include ../examples/tutorial1.rs:2:}}
~~~

8
booksrc/tutorial10.md Normal file
View file

@ -0,0 +1,8 @@
~~~rust
use crate::chainerror::*;
{{#include ../examples/tutorial10.rs:2:}}
# #[allow(dead_code)]
# mod chainerror {
{{#includecomment ../src/lib.rs}}
# }
~~~

8
booksrc/tutorial11.md Normal file
View file

@ -0,0 +1,8 @@
~~~rust
use crate::chainerror::*;
{{#include ../examples/tutorial11.rs:2:}}
# #[allow(dead_code)]
# mod chainerror {
{{#includecomment ../src/lib.rs}}
# }
~~~

8
booksrc/tutorial2.md Normal file
View file

@ -0,0 +1,8 @@
~~~rust
use crate::chainerror::*;
{{#include ../examples/tutorial2.rs:2:}}
# #[allow(dead_code)]
# mod chainerror {
{{#includecomment ../src/lib.rs}}
# }
~~~

8
booksrc/tutorial3.md Normal file
View file

@ -0,0 +1,8 @@
~~~rust
use crate::chainerror::*;
{{#include ../examples/tutorial3.rs:2:}}
# #[allow(dead_code)]
# mod chainerror {
{{#includecomment ../src/lib.rs}}
# }
~~~

8
booksrc/tutorial4.md Normal file
View file

@ -0,0 +1,8 @@
~~~rust
use crate::chainerror::*;
{{#include ../examples/tutorial4.rs:2:}}
# #[allow(dead_code)]
# mod chainerror {
{{#includecomment ../src/lib.rs}}
# }
~~~

8
booksrc/tutorial5.md Normal file
View file

@ -0,0 +1,8 @@
~~~rust
use crate::chainerror::*;
{{#include ../examples/tutorial5.rs:2:}}
# #[allow(dead_code)]
# mod chainerror {
{{#includecomment ../src/lib.rs}}
# }
~~~

8
booksrc/tutorial6.md Normal file
View file

@ -0,0 +1,8 @@
~~~rust
use crate::chainerror::*;
{{#include ../examples/tutorial6.rs:2:}}
# #[allow(dead_code)]
# mod chainerror {
{{#includecomment ../src/lib.rs}}
# }
~~~

8
booksrc/tutorial7.md Normal file
View file

@ -0,0 +1,8 @@
~~~rust
use crate::chainerror::*;
{{#include ../examples/tutorial7.rs:2:}}
# #[allow(dead_code)]
# mod chainerror {
{{#includecomment ../src/lib.rs}}
# }
~~~

8
booksrc/tutorial8.md Normal file
View file

@ -0,0 +1,8 @@
~~~rust
use crate::chainerror::*;
{{#include ../examples/tutorial8.rs:2:}}
# #[allow(dead_code)]
# mod chainerror {
{{#includecomment ../src/lib.rs}}
# }
~~~

8
booksrc/tutorial9.md Normal file
View file

@ -0,0 +1,8 @@
~~~rust
use crate::chainerror::*;
{{#include ../examples/tutorial9.rs:2:}}
# #[allow(dead_code)]
# mod chainerror {
{{#includecomment ../src/lib.rs}}
# }
~~~