Skip to content

Commit c426db6

Browse files
committed
Use a variable for the Python version
Closes #1846
1 parent fe01125 commit c426db6

File tree

5 files changed

+19
-6
lines changed

5 files changed

+19
-6
lines changed

.overrides/CONTRIBUTING.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ Antes de comenzar
6767

6868
#. Selecciona un :ref:`archivo para traducir <que-archivo-traducir>`.
6969

70-
#. Verifica que estás en la rama principal del repositorio, **3.11** (esto es muy
70+
#. Verifica que estás en la rama principal del repositorio, **|pythonversion|** (esto es muy
7171
importante para evitar crear una nueva rama a partir de una traducción
7272
anterior)::
7373

74-
git checkout 3.11
74+
git checkout |pythonversion|
7575

7676
#. Crea una rama nueva en base al artículo en el que vayas a trabajar. Por
7777
ejemplo, si vas a trabajar en el archivo ``library/glosario.po``, usa un nombre

.overrides/faq.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ repositorio principal de la traducción). Se hace de la siguiente manera::
204204

205205
Luego nos vamos a nuestra rama local, confirmamos e impactamos esos cambios::
206206

207-
git checkout 3.11
208-
git merge upstream/3.11
209-
git push origin 3.11
207+
git checkout |pythonversion|
208+
git merge upstream/|pythonversion|
209+
git push origin |pythonversion|
210210

211211
¡Eso es todo!
212212

.overrides/progress.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ y otras estadísticas.
1010

1111
.. note::
1212

13-
Estas listas se actualiza automáticamente cuando Pull Requests se *mergean* a la rama ``3.11``.
13+
Estas listas se actualiza automáticamente cuando Pull Requests se *mergean* a la rama ``|pythonversion|``.
1414

1515

1616
En progreso

.overrides/upgrade-python-version.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
:orphan:
22

3+
.. No uso |pythonversion| "replace" acá porque esta página documenta
4+
la actualización puntual de una versión a otra y no quiero que se actualice
5+
automaticamente cuando cambiamos la variable en ``conf.py``
6+
37
How to update to a new Python version
48
=====================================
59

conf.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@
3232
from patchlevel import get_header_version_info
3333
version, release = get_header_version_info(os.path.abspath('cpython/Doc'))
3434

35+
_rst_epilog = """
36+
.. |pythonversion| replace:: 3.11
37+
"""
38+
39+
if 'rst_epilog' in globals():
40+
rst_epilog += _rst_epilog
41+
else:
42+
rst_epilog = _rst_epilog
43+
3544
project = 'Python en Español'
3645
year = time.strftime("%Y")
3746
copyright = f'2001-{year}, Python Software Foundation'

0 commit comments

Comments
 (0)
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