Skip to content

Support for setting priority using regular expressions #98

@Koen1999

Description

@Koen1999

Related to issue #97, I think it could be highly beneficial to be able to prioritize certain pages over others. Specifically, to prioritize manually written documentation over automatically generated documentation.

Currently the automatically generated documentation may show up first, which is not desirable from a user perspective.

I think having something like a dictionary in the configuration that allows you to map URL patterns to a priority should do the trick. In case multiple patterns match the same URL, we can just use the longest pattern.

URL_PRIORITY = {
    "_modules.*": 0.2,
    "*": 0.5,
}

@jdillard , let me know if you need help implementing something like this.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions