Skip to content

Commit 7ce471e

Browse files
committed
In docs, use intersphinx to link to Python documentation
The intersphinx extension can generate automatic links to the documentation of objects in other projects. For complete details on intersphinx, see: http://www.sphinx-doc.org/en/master/ext/intersphinx.html
1 parent ec41070 commit 7ce471e

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

Doc/bytes_mode.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,11 @@ to be given as well.
9393
Porting recommendations
9494
-----------------------
9595

96-
Since end of life of Python 2 is coming in a few years,
97-
projects are strongly urged to make their code compatible with Python 3.
98-
General instructions for this are provided `in Python documentation`_ and in
99-
the `Conservative porting guide`_.
96+
Since end of life of Python 2 is coming in a few years, projects are strongly
97+
urged to make their code compatible with Python 3. General instructions for
98+
this are provided :ref:`in Python documentation <pyporting-howto>` and in the
99+
`Conservative porting guide`_.
100100

101-
.. _in Python documentation: https://docs.python.org/3/howto/pyporting.html
102101
.. _Conservative porting guide: https://portingguide.readthedocs.io/en/latest/
103102

104103

Doc/conf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@
3131

3232
# Add any Sphinx extension module names here, as strings. They can be extensions
3333
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
34-
extensions = ['sphinx.ext.autodoc']
34+
extensions = [
35+
'sphinx.ext.autodoc',
36+
'sphinx.ext.intersphinx',
37+
]
3538

3639
try:
3740
import sphinxcontrib.spelling
@@ -148,3 +151,5 @@
148151

149152
# If false, no module index is generated.
150153
latex_use_modindex = True
154+
155+
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}

Doc/installing.rst

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,8 @@ From a source repository::
9999
If you have more than one Python interpreter installed locally, you should
100100
use the same one you plan to use python-ldap with.
101101

102-
Further instructions can be found in `Setuptools documentation`_.
103-
104-
105-
.. _Setuptools documentation: https://docs.python.org/3/distributing/index.html
102+
Further instructions can be found in :ref:`Setuptools documentation
103+
<distributing-index>`.
106104

107105

108106
.. _build prerequisites:
@@ -169,11 +167,10 @@ Packages for building and testing::
169167
setup.cfg
170168
=========
171169

172-
The file setup.cfg allows to set some build and installation
173-
parameters for reflecting the local installation of required
174-
software packages. Only section ``[_ldap]`` is described here.
175-
More information about other sections can be found in
176-
`Setuptools documentation`_.
170+
The file setup.cfg allows to set some build and installation parameters for
171+
reflecting the local installation of required software packages. Only section
172+
``[_ldap]`` is described here. More information about other sections can be
173+
found in :ref:`Setuptools documentation <distributing-index>`.
177174

178175
.. data:: library_dirs
179176

Doc/sample_workflow.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,14 @@ Clone the repository::
2626
$ git clone https://github.com/python-ldap/python-ldap
2727
$ cd python-ldap
2828

29-
Create a `virtual environment`_ to ensure you in-development python-ldap won't
30-
affect the rest of your system::
29+
Create a :mod:`virtual environment <venv>` to ensure you in-development
30+
python-ldap won't affect the rest of your system::
3131

3232
$ python3 -m venv __venv__
3333

3434
(For Python 2, install `virtualenv`_ and use it instead of ``python3 -m venv``.)
3535

3636
.. _git: https://git-scm.com/
37-
.. _virtual environment: https://docs.python.org/3/library/venv.html
3837
.. _virtualenv: https://virtualenv.pypa.io/en/stable/
3938

4039
Activate the virtual environment::

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