Skip to content

Dynamically substitute main version in versions.rst from release-cycle.json #1583

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prev Previous commit
Next Next commit
Update conf.py
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
  • Loading branch information
corneliusroemer and hugovk authored Jun 23, 2025
commit 68e60a46d5c1cf5b89fc9fed8ff30635d4da9589
8 changes: 1 addition & 7 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,7 @@
with open("include/release-cycle.json", encoding="UTF-8") as _f:
_cycle = json.load(_f)

_main_entries = [v for v, d in _cycle.items() if d.get("branch") == "main"]
if len(_main_entries) != 1:
raise RuntimeError(
"release-cycle.json must contain exactly one entry with 'branch': 'main'"
)

_main_version = _main_entries[0]
main_version = next(version for version, data in _cycle.items() if data.get("branch") == "main")

# prolog and epilogs
rst_prolog = f"""
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy