-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Runtime toggle for private/hidden items documentation #149106
Copy link
Copy link
Open
Labels
A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameArea: Intra-doc links, the ability to link to items in docs by nameA-rust-for-linuxRelevant for the Rust-for-Linux projectRelevant for the Rust-for-Linux projectA-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
Metadata
Metadata
Assignees
Labels
A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameArea: Intra-doc links, the ability to link to items in docs by nameA-rust-for-linuxRelevant for the Rust-for-Linux projectRelevant for the Rust-for-Linux projectA-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
Type
Fields
Give feedbackNo fields configured for issues without a type.
In some projects, it can be useful to see private/hidden items/documentation/details (and
/* private fields */etc.) without having to go into the source view, which isn't as nice.Instead of re-rendering the documentation with
--document-private-itemsand--document-hidden-items, it would be very interesting to have a runtime toggle (i.e. in the web UI) that users could click to show hidden and/or private items on the fly.This feature would also mean that we would already get checking for private/hidden items, i.e. it could be an alternative for #149105 for those that want to use the runtime toggle anyway.
This can be worked around on the user side by generating every documentation set needed and then adding custom UI. Of course, that is slower, takes more space, doesn't allow for an implementation that avoids reloading, users need to reimplement the same idea, etc.
#141299
Cc @GuillaumeGomez @fmease @lolbinarycat
@rustbot label T-rustdoc
@rustbot label A-intra-doc-links
@rustbot label A-rust-for-linux