Skip to content

Use f-strings in docs/conf.py #1006

Description

@stevepiercy

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/"

Metadata

Metadata

Assignees

Type

No type

Projects

Status
New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions