Every year, we need to archive trainings from the previous year's Plone Conference, after the final training schedule has been announced. One of the tasks is a tedious update of comparing, for example, the 2025 branch against the 2024 branch to find where to update the year.
Instead let's use f-strings so that there's only a single place to update. I've already tried this on 2025 branch, and it works nicely.
archive_year = "" # When archiving, add the year to archive
archive_year_space = " " + archive_year
archive_year_dot = archive_year + "."
...
project = f"Plone Training{archive_year_space}"
...
version = archive_year
...
ogp_site_url = f"https://{archive_year_dot}training.plone.org/"
Every year, we need to archive trainings from the previous year's Plone Conference, after the final training schedule has been announced. One of the tasks is a tedious update of comparing, for example, the
2025branch against the2024branch to find where to update the year.Instead let's use f-strings so that there's only a single place to update. I've already tried this on
2025branch, and it works nicely.