Skip to content

Commit

Permalink
Move "upgrade mdbook" description to the build-from-source section
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Aug 11, 2024
1 parent 94baf19 commit 59d26db
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions guide/src/guide/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

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`.

[Rust installation page]: https://www.rust-lang.org/tools/install
Expand All @@ -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`.


### 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

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

0 comments on commit 59d26db

Please sign in to comment.