-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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 no-crate filter option on rustdoc #57006
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.
Just a nit on the wording of the flag, otherwise this looks good!
This is going to conflict with #57011, so whichever merges first will leave the other with a merge conflict.
src/librustdoc/lib.rs
Outdated
unstable("no-doc-crate-filtering", |o| { | ||
o.optflag("", | ||
"no-doc-crate-filtering", | ||
"to prevent crate filtering button generation on search") |
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.
--disable-per-crate-search
"disables generating the crate selector on the search box"
7bf2719
to
2718b3d
Compare
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
2718b3d
to
a9247b9
Compare
Updated. |
src/librustdoc/config.rs
Outdated
@@ -192,6 +192,9 @@ pub struct RenderOptions { | |||
/// If present, playground URL to use in the "Run" button added to code samples generated from | |||
/// standalone Markdown files. If not present, `playground_url` is used. | |||
pub markdown_playground_url: Option<String>, | |||
/// If false, the `select` element to have search filtering by crates on rendered docs | |||
/// won't be generated. | |||
pub generate_filter_crates: bool, |
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.
We should also change this to something like generate_search_filter
to match the CLI flag a little closer.
a9247b9
to
2b76cbd
Compare
Updated. |
☔ The latest upstream changes (presumably #57063) made this pull request unmergeable. Please resolve the merge conflicts. |
2b76cbd
to
dbcf689
Compare
@bors: r=QuietMisdreavus |
📌 Commit dbcf689 has been approved by |
Add no-crate filter option on rustdoc @onur asked me about it so here it is! r? @QuietMisdreavus
☀️ Test successful - status-appveyor, status-travis |
@onur asked me about it so here it is!
r? @QuietMisdreavus