Skip to content

Commit

Permalink
Merge #277
Browse files Browse the repository at this point in the history
277: Add `--generate-link-to-definition` option when building on docs.rs r=cuviper a=GuillaumeGomez

This option generates links in source code pages, allowing to jump to definition and to jump back to doc. It makes browsing the source code pages much nicer. You can see it in action [here](https://doc.rust-lang.org/stable/nightly-rustc/src/rustc_middle/lib.rs.html#90).

Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
  • Loading branch information
bors[bot] and GuillaumeGomez committed Jul 20, 2023
2 parents f4db632 + 878df73 commit 85edb5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ rust-version = "1.31"

[package.metadata.docs.rs]
features = ["std"]
rustdoc-args = ["--generate-link-to-definition"]

[dependencies]
libm = { version = "0.2.0", optional = true }
Expand Down

0 comments on commit 85edb5e

Please sign in to comment.