mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-04 18:19:27 +00:00
Move "upgrade mdbook" description to the build-from-source section
This commit is contained in:
parent
94baf19e6a
commit
59d26dbbe7
1 changed files with 3 additions and 10 deletions
|
@ -30,6 +30,9 @@ cargo install mdbook
|
||||||
|
|
||||||
This will automatically download mdBook from [crates.io], build it, and install it in Cargo's global binary directory (`~/.cargo/bin/` by default).
|
This will automatically download mdBook from [crates.io], build it, and install it in Cargo's global binary directory (`~/.cargo/bin/` by default).
|
||||||
|
|
||||||
|
You can run `cargo install mdbook` again whenever you want to update to a new version.
|
||||||
|
That command will check if there is a newer version, and re-install mdBook if a newer version is found.
|
||||||
|
|
||||||
To uninstall, run the command `cargo uninstall mdbook`.
|
To uninstall, run the command `cargo uninstall mdbook`.
|
||||||
|
|
||||||
[Rust installation page]: https://www.rust-lang.org/tools/install
|
[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
|
||||||
|
|
||||||
Again, make sure to add the Cargo bin directory to your `PATH`.
|
Again, make sure to add the Cargo bin directory to your `PATH`.
|
||||||
|
|
||||||
|
|
||||||
### Updating mdbook from source
|
|
||||||
|
|
||||||
```sh
|
|
||||||
cargo install mdbook
|
|
||||||
```
|
|
||||||
|
|
||||||
This will automatically download mdBook from [crates.io], build it, and re-install it in Cargo's global binary directory (`~/.cargo/bin/` by default).
|
|
||||||
|
|
||||||
|
|
||||||
## Own modifications and contributing
|
## Own modifications and contributing
|
||||||
|
|
||||||
If you are interested in making modifications to mdBook itself, check out the [Contributing Guide] for more information.
|
If you are interested in making modifications to mdBook itself, check out the [Contributing Guide] for more information.
|
||||||
|
|
Loading…
Reference in a new issue