Docs: Use substitutions instead of manual version updates (#115416)

This commit is contained in:
Hugo van Kemenade 2024-02-14 08:55:00 +02:00 committed by GitHub
parent f15795c9a0
commit 46245b0d83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 4 deletions

View file

@ -66,6 +66,8 @@ version, release = patchlevel.get_version_info()
rst_epilog = f"""
.. |python_version_literal| replace:: ``Python {version}``
.. |python_x_dot_y_literal| replace:: ``python{version}``
.. |usr_local_bin_python_x_dot_y_literal| replace:: ``/usr/local/bin/python{version}``
"""
# There are two options for replacing |today|: either, you set today to some