-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Fix rustdoc source code rendering for #[path = "../path/to/mod.rs"]
links
#106466
Conversation
r? @notriddle (rustbot has picked a reviewer for you, use r? to override) |
deb41fa
to
0fc9e65
Compare
I'm glad to see this fixed, but it introduces broken links to the standard library docs, and it has no test cases. To write the test cases, use the |
Looks like this has broken pretty much every other relative link 😅 |
This comment has been minimized.
This comment has been minimized.
79bfc53
to
cb0c746
Compare
@bors r+ rollup |
📌 Commit cb0c7466ad48b337eb3711cf5aa443013096fedd has been approved by It is now in the queue for this repository. |
cb0c746
to
d5d1c57
Compare
Cleaned up the |
@bors r+ rollup |
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#106287 (Add some docs to `bug`, `span_bug` and `delay_span_bug`) - rust-lang#106341 (refactor: clean up `errors.rs` and `error_codes_check.rs`) - rust-lang#106453 (Improve include macro documentation) - rust-lang#106466 (Fix rustdoc source code rendering for `#[path = "../path/to/mod.rs"]` links) - rust-lang#106528 (Tiny formatting fix) - rust-lang#106534 (rustdoc-gui: Use new block syntax for define-function in goml scripts) - rust-lang#106542 (Add default and latest stable edition to --edition in rustc (attempt 2)) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #103517
While generating the location for modules source HTML to be saved at, a
..
path component appeared to be translated to/up/
.Additionally, while generating the navigation sidebar,
..
path components were ignored. This means that (as in the issue above), a real directory structure of:was rendered as:
While the files were stored as