From 95705367ae5bf3804d7ef9db8f9e6e801b2e5480 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Mon, 4 May 2020 22:00:20 +0200 Subject: [PATCH 1/4] Fix step numbering --- .overrides/CONTRIBUTING.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.overrides/CONTRIBUTING.rst b/.overrides/CONTRIBUTING.rst index 0f7ff17539..b4e427b938 100644 --- a/.overrides/CONTRIBUTING.rst +++ b/.overrides/CONTRIBUTING.rst @@ -20,14 +20,14 @@ Desde GitHub #. Crea un fork del repositorio_. -.. _repositorio: https://github.com/PyCampES/python-docs-es - .. note:: Puedes consular la `ayuda oficial de GitHub`_, si lo deseas. .. _ayuda oficial de GitHub: https://help.github.com/es/github/getting-started-with-github/fork-a-repo +.. _repositorio: https://github.com/PyCampES/python-docs-es + #. Clona el repositorio:: git clone git@github.com:/python-docs-es.git @@ -41,7 +41,7 @@ Desde GitHub git remote add upstream https://github.com/pycampes/python-docs-es.git #. Crea una branch nueva en base al artículo en el que vayas a trabajar. - + git checkout -b traduccion_glosario #. Mira que archivo necesita ser traducido. El siguiente comando te mostrará una lista de archivos y los porcentajes traducidos. From 8b608b5b62e62ec8c13be5c6bc4ff7ddb6a03922 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Mon, 4 May 2020 22:00:43 +0200 Subject: [PATCH 2/4] Use the same patchlevel module to get the version Pass the real path from where it has to take the version. --- conf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/conf.py b/conf.py index f53eac6d1a..48b1f03555 100644 --- a/conf.py +++ b/conf.py @@ -21,8 +21,10 @@ sys.path.append(os.path.abspath('cpython/Doc')) from conf import * -version = '3.7' -release = '3.7.7' +# Call patchlevel with the proper path to get the version from +# instead of hardcoding it +import patchlevel +version, release = patchlevel.get_header_version_info('cpython/Doc') project = 'Python en Español' copyright = '2001-%s, Python Software Foundation' % time.strftime('%Y') From ad82ee7a51d1dc5519b12b99d5e46297e048d0eb Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Mon, 4 May 2020 22:02:06 +0200 Subject: [PATCH 3/4] Move links to the bottom to avoid issues with numbering --- .overrides/CONTRIBUTING.rst | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.overrides/CONTRIBUTING.rst b/.overrides/CONTRIBUTING.rst index b4e427b938..a9814aa5c6 100644 --- a/.overrides/CONTRIBUTING.rst +++ b/.overrides/CONTRIBUTING.rst @@ -9,7 +9,6 @@ Actualmente se puede colaborar utilizando una de las dos siguientes formas que: #. Utilizando el repositorio de GitHub y el editor poedit_ #. Realizando traducciones directamente en Transifex - .. note:: Si tienes cualquier duda, puedes enviarnos un email a docs-es@python.org. @@ -24,10 +23,6 @@ Desde GitHub Puedes consular la `ayuda oficial de GitHub`_, si lo deseas. - .. _ayuda oficial de GitHub: https://help.github.com/es/github/getting-started-with-github/fork-a-repo - -.. _repositorio: https://github.com/PyCampES/python-docs-es - #. Clona el repositorio:: git clone git@github.com:/python-docs-es.git @@ -62,12 +57,6 @@ Desde GitHub Puedes consultar la `ayuda oficial de GitHub para crear un Pull Request`_ si lo deseas. - .. _ayuda oficial de GitHub para crear un Pull Request: https://help.github.com/es/github/collaborating-with-issues-and-pull-requests/about-pull-requests - - -.. _poedit: https://poedit.net/ - - Previsualizar los cambios ~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -100,3 +89,9 @@ Utilizando Transifex -------------------- ToDo. + + +.. _repositorio: https://github.com/PyCampES/python-docs-es +.. _ayuda oficial de GitHub: https://help.github.com/es/github/getting-started-with-github/fork-a-repo +.. _ayuda oficial de GitHub para crear un Pull Request: https://help.github.com/es/github/collaborating-with-issues-and-pull-requests/about-pull-requests +.. _poedit: https://poedit.net/ From ea66c0195551ec72293ca7a4e518aa0f07ae200e Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Mon, 4 May 2020 22:16:31 +0200 Subject: [PATCH 4/4] Absolute path --- conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf.py b/conf.py index 48b1f03555..2aa1e6b1ec 100644 --- a/conf.py +++ b/conf.py @@ -24,7 +24,7 @@ # Call patchlevel with the proper path to get the version from # instead of hardcoding it import patchlevel -version, release = patchlevel.get_header_version_info('cpython/Doc') +version, release = patchlevel.get_header_version_info(os.path.abspath('cpython/Doc')) project = 'Python en Español' copyright = '2001-%s, Python Software Foundation' % time.strftime('%Y')