Allow to provide a custom map of rendered strings for doc(cfg(...))
#87139
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Currently,
rustdoc
has some hardcoded logic to renderdoc(cfg(...))
in:rust/src/librustdoc/clean/cfg.rs
Line 464 in 4f0c568
rustdoc
could also take a map of config options to "rendered strings" (passed as e.g. a file via the command line), so that one may have:instead of:
Ideally, there could be also be one for the "short" name (that goes in the index) and the "long" name (that goes inside the item); and perhaps even allow for Markdown and to provide a custom formatting string (so that the message can be customized), e.g. it could be used to have something like:
The text was updated successfully, but these errors were encountered: