Skip to content

Commit

Permalink
remove current versions from old links
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored Jul 26, 2024
1 parent f11fd17 commit 860da2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/make_api_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ def ltr_tag(v):
current_stable = cfg["current_stable"]
current_ltr = cfg["current_ltr"]
current_stable_minor = int(current_stable.split(".")[1]) + 2 # '3.38' => 40
current_ltr_minor = int(current_stable.split(".")[1]) + 2 # '3.38' => 40
old_versions_links = ", ".join(reversed(
[
f"`3.{v} <https://github.com/qgis/pyqgis-api-docs-builder/releases/download/3.{v}/pyqgis-docs-3.{v}.zip>`_"
for v in range(0, current_stable_minor, 2)
if v not in (current_stable_minor, current_ltr_minor)
]
))

Expand Down

0 comments on commit 860da2e

Please sign in to comment.