Skip to content

Set priority attribute based on version #11

@jdillard

Description

@jdillard

Set <priority> as:

  • 1 for the pages of the latest or stable version.
  • for each following version, decrease the priority of 0.1 at each version
  • 0.1 for the pages for other version if there is more than 9 versions.

The priority could possibly be a config value, sitemap_priority, manually set/configured in conf.py with the ability to be changed based on the versioning method (change the value for each tag/branch).

Taken from here: readthedocs/readthedocs.org#557

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions