Skip to content

Allow rustdoc to generate noindex meta tags for a library #41882

Closed
@skade

Description

@skade

There's currently a problem that when searching for the documentation of a crate in any search engine, chances are you find the documentation of a different project that publishes their full documentation along with all dependencies.

To avoid that, allow rustdoc to generate the following meta tag for all documentation of a library:

<meta name="robots" content="noindex">

This makes most crawlers not index the page. The feature could be implemented behind a flag.

rel="canonical" would be preferably, but the correct URL is hard to derive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions