Skip to content

Commit 59d26db

Browse files
authored
Move "upgrade mdbook" description to the build-from-source section
1 parent 94baf19 commit 59d26db

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

guide/src/guide/installation.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ cargo install mdbook
3030

3131
This will automatically download mdBook from [crates.io], build it, and install it in Cargo's global binary directory (`~/.cargo/bin/` by default).
3232

33+
You can run `cargo install mdbook` again whenever you want to update to a new version.
34+
That command will check if there is a newer version, and re-install mdBook if a newer version is found.
35+
3336
To uninstall, run the command `cargo uninstall mdbook`.
3437

3538
[Rust installation page]: https://www.rust-lang.org/tools/install
@@ -47,16 +50,6 @@ cargo install --git https://github.com/rust-lang/mdBook.git mdbook
4750

4851
Again, make sure to add the Cargo bin directory to your `PATH`.
4952

50-
51-
### Updating mdbook from source
52-
53-
```sh
54-
cargo install mdbook
55-
```
56-
57-
This will automatically download mdBook from [crates.io], build it, and re-install it in Cargo's global binary directory (`~/.cargo/bin/` by default).
58-
59-
6053
## Own modifications and contributing
6154

6255
If you are interested in making modifications to mdBook itself, check out the [Contributing Guide] for more information.

0 commit comments

Comments
 (0)