-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
intra doc links towards parent crate succeed but create warnings #73699
Comments
Transferred to the rust-lang/rust repository, where the rustdoc tool lives. |
This will break links as well once #73101 is merged. In general I don't think intra-doc links were designed for this use case, but you could try using absolute paths on the off chance it works. |
Note also that the link would be broken currently if you only documented A, it looks like it works because you always document the two crates at the same time. |
Ok, yeah thats fine, if the links break in the future we'll just remove them I guess. |
Absolute links absolutely work going forward in the dep tree (I did it before realizing that intra-doc links worked). I understand that this is the proper thing to do, but it makes me sad as my docs in wgpu-types will get much more annoying in the future. |
Now that #73101 has been merged this should be closed as wontfix, you can't refer to upstream crates because they're not in scope. The links will now both create warnings and not generate the links you meant. |
I opened #74481 for the general issue of linking to upstream documentation. |
Problem
intra doc links towards parent crate succeed when generating docs for the parent crate but creates warnings like:
But we can see here that it succeeds: https://wgpu.rs/doc/wgpu/struct.DeviceDescriptor.html
Steps
Notes
Output of
cargo version
: cargo 1.46.0-nightly (089cbb80b 2020-06-15)A workaround PR for this issue was made for wgpu gfx-rs/wgpu#748
This issue is kind of obscure, so I wouldnt be surprised if the best solution is for the user to just add an allow for the warning, but figured I would make an issue in case its useful.
The text was updated successfully, but these errors were encountered: