Skip to content
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

Rustdoc: include crate name in links for local primitives #121490

Merged
merged 1 commit into from
Feb 24, 2024

Commits on Feb 24, 2024

  1. Rustdoc: include crate name in links for local primitives

    It makes the link easier to use in cases in which
    the path of the page where it will be embedded is not
    known beforehand such as when we generate impls
    dynamically from `register_type_impls` method in
    `main.js`
    
    Earlier for local primitives we would generate a path
    that was relative to the current page depth passed in `cx.current`
    . e.g if the current page was `std::simd::prelude::Simd` the
    generated path would be `../../primitive.<prim>.html`  After this
    change the path will first take you to the the wesite root and add
    the crate name. e.g. for `std::simd::prelude::Simd` the path now
    will be `../../../std/primitive.<prim>.html`
    gurry committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    e0bfa5c View commit details
    Browse the repository at this point in the history