@@ -17,9 +17,9 @@ You can also build the book and read it locally if you'd like.
17
17
18
18
### Requirements
19
19
20
- Building the book requires [ mdBook] 0.2 . To get it:
20
+ Building the book requires [ mdBook] 0.4 . To get it:
21
21
22
- [ mdBook ] : https://github.com/azerupi /mdBook
22
+ [ mdBook ] : https://github.com/rust-lang /mdBook
23
23
24
24
``` bash
25
25
$ cargo install mdbook
@@ -29,30 +29,13 @@ $ cargo install mdbook
29
29
30
30
The most straight-forward way to build and view the book locally is to use the following command:
31
31
``` bash
32
- $ mdbook serve
32
+ $ mdbook serve --open
33
33
```
34
34
35
- This serves the book at http://localhost:3000 , and rebuilds it on changes.
36
- You can now view the book in your web browser. If you make changes to the book's source code,
37
- you should only need to refresh your browser to see them.
38
-
39
- _ Firefox:_
40
-
41
- ``` shell
42
- $ firefox http://localhost:3000 # Linux
43
- $ open -a " Firefox" http://localhost:3000 # OS X
44
- $ Start-Process " firefox.exe" http://localhost:3000 # Windows (PowerShell)
45
- $ start firefox.exe http://localhost:3000 # Windows (Cmd)
46
- ```
47
-
48
- _ Chrome:_
49
-
50
- ``` shell
51
- $ google-chrome http://localhost:3000 # Linux
52
- $ open -a " Google Chrome" http://localhost:3000 # OS X
53
- $ Start-Process " chrome.exe" http://localhost:3000 # Windows (PowerShell)
54
- $ start chrome.exe http://localhost:3000 # Windows (Cmd)
55
- ```
35
+ This builds the HTML version of the book, starts a webserver at
36
+ http://localhost:3000 , and opens your default web browser. It will also
37
+ automatically rebuild the book whenever the source changes, and the page
38
+ should automatically reload.
56
39
57
40
To run the tests:
58
41
0 commit comments