mirror of
https://github.com/python/cpython.git
synced 2025-10-14 18:59:46 +00:00
Docs: Use substitutions instead of manual version updates (#115416)
This commit is contained in:
parent
f15795c9a0
commit
46245b0d83
4 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue