Skip to content

Mechanism for updating doc links on release based on package versions #293

@RobPasMue

Description

@RobPasMue

On dev, our links point to version/stable whenever multi-version is enabled.

We should come up with a simple script that will update those links on release branches. It can be run locally, no big deal. The goal is that the script checks the current versions of the packages and changes the stable subfolder for the major.minor folder associated to its package version.

This might imply moving all links to a single file, so that it is easier to maintain.

Python script should be failry simple:

  1. Use importlib metadata to check the version of the different packages.
  2. Given the version, strip the major.minor value
  3. Parse the links file and whenever there is a link associated to this library (we might need a dictionary where the keys are the libraries and the values, the URL to the main CNAME) modify version/stable by version/major.minor

This will only be applicable to those sites that have multi version enabled

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions