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:
- Use importlib metadata to check the version of the different packages.
- Given the version, strip the major.minor value
- 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