-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(doc): Print the generated docs links #12859
Conversation
I've wanted something like this myself. I dislike using `--open` because I tend to move up to re-run my `cargo doc` run but then have to edit it to remove `--open`. Also makes it annoying when opening docs when `cargo doc` is wrapped by a tool like `make`. This was previously attempted in rust-lang#5592: - Unlike the request in rust-lang#5562, this aligns with rust-lang#5592 in always printing rather than using a flag as this seems generally useful - Unlike rust-lang#5592, this prints as an alternative to "Opening" to keep things light - Unlike rust-lang#5592, this prints afterwards as the link is only valid then Fixes rust-lang#5562
r? @weihanglo (rustbot has picked a reviewer for you, use r? to override) |
8ce21bc
to
1dac61e
Compare
958406c
to
9261a81
Compare
ee1f132
to
293f225
Compare
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.
This looks great. Have you consider integrating something like hyperlinks in terminal emulators?
ripgrep
just got a similar feature, though not by using OSC escape sequence:
We'd also want to do that for How about we do that in a follow up? |
Yeah, reading that further, seems like we should have a dedicated issue for planning and implementing it |
Fair. Thank you @bors r+ |
☀️ Test successful - checks-actions |
Update cargo 8 commits in df3509237935f9418351b77803df7bc05c009b3d..708383d620e183a9ece69b8fe930c411d83dee27 2023-10-24 23:09:01 +0000 to 2023-10-27 21:09:26 +0000 - feat(doc): Print the generated docs links (rust-lang/cargo#12859) - feat(toml): Allow version-less manifests (rust-lang/cargo#12786) - Remove outdated option to `-Zcheck-cfg` warnings (rust-lang/cargo#12884) - Remove duplicate binaries during install (rust-lang/cargo#12868) - refactor(shell): Write at once rather than in fragments (rust-lang/cargo#12880) - docs(ref): Link to docs.rs metadata table (rust-lang/cargo#12879) - docs(contrib): Describe how to add a new package (rust-lang/cargo#12878) - move up looking at index summary enum (rust-lang/cargo#12749) r? ghost
I've wanted something like this myself. I dislike using
--open
because I tend to move up to re-run mycargo doc
run but then have to edit it to remove--open
.Also makes it annoying when opening docs when
cargo doc
is wrapped by a tool likemake
.This was previously attempted in #5592:
Fixes #5562