Skip to content

Commit 239152b

Browse files
committed
Auto merge of #443 - GuillaumeGomez:generate-links-to-def, r=Amanieu
Add `--generate-link-to-definition` option when building on docs.rs 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).
2 parents 3b348ea + 415e711 commit 239152b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,4 @@ inline-more = []
6868

6969
[package.metadata.docs.rs]
7070
features = ["nightly", "rayon", "serde", "raw"]
71+
rustdoc-args = ["--generate-link-to-definition"]

0 commit comments

Comments
 (0)