All content below would be copied from one release to the next, in order to avoid any dependence between releases. Within each release tree, we have numerous internal links. We prefer absolute paths over relative paths because pages may be moved to different hierarchy levels.
Question: How to write links to content/documentation/current/A/B/C.md such that they can easily replaced by content/documentation/$release/A/B/C.md whenever a new release is published.
ref works with either relative or absolute paths. Relative paths are inconvenient because the location from there they are called may change. Absolute paths are inconvenient because they would contain the version number or “current”.
One possible solution: absolute paths that contain a version function. How to write such a function that detects the version part of the absolute path the calling page is located in?