Skip to content

Support relative links between crates? #204

Open
@dhardy

Description

@dhardy

Example: Rand has multiple crates in the same repo.

We have been using relative links between the crates, e.g.:

[`BlockRng`]: ../../../rand_core/block/struct.BlockRng.html

If we build doc with cargo doc --all, these links work fine locally. They do not work on docs.rs (e.g. block BlockRng here).

Is there a good solution for this? We'd prefer not to use absolute links to docs.rs. We have documentation here which resolves the cross-linking just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-buildsArea: Building the documentation for a crateC-enhancementCategory: This is a new featureE-hardEffort: This will require a lot of work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions