We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f84e5cc commit a1f5353Copy full SHA for a1f5353
src/frequenz/repo/config/mkdocs/mike.py
@@ -143,14 +143,17 @@ def build_mike_version(repo_info: RepoVersionInfo) -> MikeVersionInfo:
143
144
145
def _to_fake_sortable_semver(version: str) -> str:
146
- """Convert a version string to a semver string.
+ """Convert a branch version string to a semver string.
147
148
The following transformations are applied:
149
150
- `vX.Y` -> `X.Y.0`
151
- `vX.Y-pre` -> `X.Y.99999`
152
- `vX.Y-dev` -> `X.Y.999999`
153
154
+ The idea is to convert the version string to a semver string that can be sorted
155
+ together with proper semver tags using the semver built-in sorting.
156
+
157
Args:
158
version: The version string to convert.
159
0 commit comments