-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --generate-link-to-definition
option when building on docs.rs
#1327
Add --generate-link-to-definition
option when building on docs.rs
#1327
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a nice addition
Cargo.toml
Outdated
@@ -21,7 +21,7 @@ include = ["src/", "LICENSE-*", "README.md", "CHANGELOG.md", "COPYRIGHT"] | |||
# To build locally: | |||
# RUSTDOCFLAGS="--cfg doc_cfg" cargo +nightly doc --all-features --no-deps --open |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth adding here too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Would you mind fixing the doc tests (see CI failure) at the same time? Thanks |
54142af
to
0a15e81
Compare
@dhardy Can this be merged? I only see some broken links. |
Sure. Sorry, got distracted. |
…ust-random#1327) * Add `--generate-link-to-definition` option when building on docs.rs * Fix documentation issues
Are we certain this is working? I had to enable |
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.