-
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
Add a doc.browser config option #9473
Conversation
r? @ehuss (rust-highfive has picked a reviewer for you, use r? to override) |
The idea of this option is to allow cargo to use a separate browser from the rest of the system. My motivation in doing this is that I want to write a script that adds a symbolic link in some web root on my system such that I can access my docs via the http protocol to avoid the limitations of the file protocol that are accessibility problems for me. For instance, zoom is not retained across multiple pages and Stylus filters don't work well.
I think this seems reasonable. I had a concern about the config name. There is already a @rust-lang/cargo This proposes to add a new config variable to set the browser used with @rfcbot merge |
Team member @ehuss has proposed to merge this. The next step is review by the rest of the tagged team members: Concerns:
Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
@rfcbot concern PathAndArgs |
@rfcbot concern doc-vs-cargo-doc |
I wasn't aware. I don't see one in the configuration reference in the docs, having looked just now. Is this part of some nightly option or missing from the docs?
No disagreement with that from me, that would be a good idea. Should it also be applied to the existing BROWSER environment variable? |
Yea, it is currently unstable, documented here: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#rustdoc-map
Hm, I don't have much of an opinion here. I guess that is how $BROWSER usually works with xdg-open? (Though $BROWSER can also use $IFS, let's ignore that 😉 ) |
Alright, I've chosen not to do it to BROWSER also since it would introduce a regression on the handling of non unicode BROWSER values as I don't think I can split those at a space, so I'd have to convert it to Unicode lossily. |
Previously we apparently weren't doing this as we weren't checking stdout.
Seems fine, we can always tweak the @rfcbot resolve PathAndArgs |
@rfcbot resolve doc-vs-cargo-doc |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
Thanks! @bors r+ |
📌 Commit 6128b54 has been approved by |
☀️ Test successful - checks-actions |
Update cargo 7 commits in 070e459c2d8b79c5b2ac5218064e7603329c92ae..e931e4796b61de593aa1097649445e535c9c7ee0 2021-05-11 18:12:23 +0000 to 2021-05-24 16:17:27 +0000 - Add `cargo:rustc-link-arg-bin` flag. (rust-lang/cargo#9486) - Add a cargo-doc.browser config option (rust-lang/cargo#9473) - Fix bug when with resolver = "1" non-virtual package was allowing unknown features (rust-lang/cargo#9437) - Add GitHub link to contributor guide. (rust-lang/cargo#9493) - Add temporary fix for rustup on windows in CI. (rust-lang/cargo#9498) - 3 typos and some capitalization (rust-lang/cargo#9495) - fix 6 typos (rust-lang/cargo#9484)
Update cargo 7 commits in 070e459c2d8b79c5b2ac5218064e7603329c92ae..e931e4796b61de593aa1097649445e535c9c7ee0 2021-05-11 18:12:23 +0000 to 2021-05-24 16:17:27 +0000 - Add `cargo:rustc-link-arg-bin` flag. (rust-lang/cargo#9486) - Add a cargo-doc.browser config option (rust-lang/cargo#9473) - Fix bug when with resolver = "1" non-virtual package was allowing unknown features (rust-lang/cargo#9437) - Add GitHub link to contributor guide. (rust-lang/cargo#9493) - Add temporary fix for rustup on windows in CI. (rust-lang/cargo#9498) - 3 typos and some capitalization (rust-lang/cargo#9495) - fix 6 typos (rust-lang/cargo#9484)
The idea of this option is to allow cargo to use a separate browser from
the rest of the system. My motivation in doing this is that I want to
write a script that adds a symbolic link in some web root on my system
such that I can access my docs via the http protocol to avoid the
limitations of the file protocol that are accessibility problems for me.
For instance, zoom is not retained across multiple pages and Stylus
filters don't work well.