-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
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 nameT-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.
Description
Rust docs support linking to many crate items by name (functions, modules, ...) including crates.
However, the generated crate links points to folder, not index page (index.html
) which doesn't work locally or without web server with right directives.
//! Link to [`serde`] crate
Demo repository: https://github.com/loganmzz/rust-docs-issue-link-crate-root
Tested with cargo 1.85.0 (d73d2caf9 2024-12-31)
:
On:
rust_docs_issue_link_crate_root
- Only link to
serde
- Only link to
rust_docs_issue_link_crate_root_sub
- No links
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 nameT-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.