Skip to content

Commit

Permalink
Merge #245
Browse files Browse the repository at this point in the history
245: Add `--generate-link-to-definition` option when building on docs.rs r=matklad 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 14, 2023
2 parents 5340e1d + a2eabc9 commit 3cd6549
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Expand Up @@ -83,3 +83,4 @@ required-features = ["std"]

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

0 comments on commit 3cd6549

Please sign in to comment.