Skip to content

Commit 1d66203

Browse files
committed
Shrink and simplify relative path fix list
Some of these replacements didn't exist anymore, while others seemed like accidental duplicates that might or might not have been needed to begin with. Signed-off-by: Rodrigo Tobar <[email protected]>
1 parent cf1d4e6 commit 1d66203

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,8 @@ fix_relative_paths:
5252
# FIXME: Relative paths for includes in 'cpython'
5353
# See more about this at https://github.com/python/python-docs-es/issues/1844
5454
sed -i -e 's|.. include:: ../includes/wasm-notavail.rst|.. include:: ../../../../includes/wasm-notavail.rst|g' cpython/Doc/**/*.rst
55-
sed -i -e 's|.. include:: ../distutils/_setuptools_disclaimer.rst|.. include:: ../../../../distutils/_setuptools_disclaimer.rst|g' cpython/Doc/**/*.rst
56-
sed -i -e 's|.. include:: ./_setuptools_disclaimer.rst|.. include:: ../../../_setuptools_disclaimer.rst|g' cpython/Doc/**/*.rst
57-
sed -i -e 's|.. include:: token-list.inc|.. include:: ../../../token-list.inc|g' cpython/Doc/**/*.rst
58-
sed -i -e 's|.. include:: ../../using/venv-create.inc|.. include:: ../using/venv-create.inc|g' cpython/Doc/**/*.rst
59-
sed -i -e 's|.. include:: ../../../using/venv-create.inc|.. include:: ../../using/venv-create.inc|g' cpython/Doc/**/*.rst
60-
sed -i -e 's|.. include:: /using/venv-create.inc|.. include:: ../../../../using/venv-create.inc|g' cpython/Doc/**/*.rst
55+
sed -i -e 's|.. include:: token-list.inc|.. include:: ../../../token-list.inc|g' cpython/Doc/library/token.rst
56+
sed -i -e 's|.. include:: /using/venv-create.inc|.. include:: ../../../../using/venv-create.inc|g' cpython/Doc/library/venv.rst
6157

6258
# setup: After running "venv" target, prepare that virtual environment with
6359
# a local clone of cpython repository and the translation files.

0 commit comments

Comments
 (0)