Skip to content

Commit

Permalink
Fix the lack of the previous release in the docs switcher list
Browse files Browse the repository at this point in the history
- the previous release was not added to the docs switcher and it
  is lacking on the docs selection list

Signed-off-by: Janusz Lisiecki <[email protected]>
  • Loading branch information
JanuszL committed Sep 20, 2024
1 parent f34a227 commit 458a0d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@
switcher_path = os.path.join(html_static_path[0], "switcher.json")
versions = []
# the latest is in the archive
for i in range(10, int(version_short.split(".")[1]) - 1):
correction = -1 if "dev" in version_long else 0
for i in range(10, int(version_short.split(".")[1]) + correction):
if i >= 34:
versions.append((f"1.{i}", f"dali_1_{i}_0", "short_user"))
else:
Expand Down

0 comments on commit 458a0d3

Please sign in to comment.