diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2023-09-02 21:42:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-02 21:42:40 (GMT) |
commit | f58617a3bc4ff64e4663ae1a719f03bf3f2475f1 (patch) | |
tree | 92e508a17f9c6e1c4aba6650f47199260a2ea3e1 | |
parent | 4dc07d2bde2e219f3b6995891b8cda3e8094804a (diff) | |
download | cpython-f58617a3bc4ff64e4663ae1a719f03bf3f2475f1.zip cpython-f58617a3bc4ff64e4663ae1a719f03bf3f2475f1.tar.gz cpython-f58617a3bc4ff64e4663ae1a719f03bf3f2475f1.tar.bz2 |
[3.12] gh-101100: Fix sphinx warnings in `tutorial/appendix.rst` (GH-108750) (#108759)
(cherry picked from commit 3047f09490ae63f25d57efe1d14a9a65d9b5f6db)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
-rw-r--r-- | Doc/tools/.nitignore | 1 | ||||
-rw-r--r-- | Doc/tutorial/appendix.rst | 8 |
2 files changed, 4 insertions, 5 deletions
diff --git a/Doc/tools/.nitignore b/Doc/tools/.nitignore index 4fc6819..75c6a8f 100644 --- a/Doc/tools/.nitignore +++ b/Doc/tools/.nitignore @@ -171,7 +171,6 @@ Doc/reference/datamodel.rst Doc/reference/expressions.rst Doc/reference/import.rst Doc/reference/simple_stmts.rst -Doc/tutorial/appendix.rst Doc/tutorial/controlflow.rst Doc/tutorial/datastructures.rst Doc/tutorial/introduction.rst diff --git a/Doc/tutorial/appendix.rst b/Doc/tutorial/appendix.rst index 241a812..588591f 100644 --- a/Doc/tutorial/appendix.rst +++ b/Doc/tutorial/appendix.rst @@ -101,8 +101,8 @@ in the script:: The Customization Modules ------------------------- -Python provides two hooks to let you customize it: :mod:`sitecustomize` and -:mod:`usercustomize`. To see how it works, you need first to find the location +Python provides two hooks to let you customize it: :index:`sitecustomize` and +:index:`usercustomize`. To see how it works, you need first to find the location of your user site-packages directory. Start Python and run this code:: >>> import site @@ -113,9 +113,9 @@ Now you can create a file named :file:`usercustomize.py` in that directory and put anything you want in it. It will affect every invocation of Python, unless it is started with the :option:`-s` option to disable the automatic import. -:mod:`sitecustomize` works in the same way, but is typically created by an +:index:`sitecustomize` works in the same way, but is typically created by an administrator of the computer in the global site-packages directory, and is -imported before :mod:`usercustomize`. See the documentation of the :mod:`site` +imported before :index:`usercustomize`. See the documentation of the :mod:`site` module for more details. |