diff options
| author | Georg Brandl <georg@python.org> | 2010-07-10 16:59:23 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-07-10 16:59:23 +0200 |
| commit | 0a41c63b698e7aba7e16fa651b1e2c960d5b0232 (patch) | |
| tree | 8234ea9903a8f0623adba0f40a2941630cec2316 /doc/ext | |
| parent | a7c3e3b004b6b82babde6f41413812b9ccd0946d (diff) | |
| download | sphinx-0a41c63b698e7aba7e16fa651b1e2c960d5b0232.tar.gz | |
#461: elaborate how to use intersphinx.
Diffstat (limited to 'doc/ext')
| -rw-r--r-- | doc/ext/intersphinx.rst | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/doc/ext/intersphinx.rst b/doc/ext/intersphinx.rst index 29b4057f..bb2a5a8c 100644 --- a/doc/ext/intersphinx.rst +++ b/doc/ext/intersphinx.rst @@ -9,7 +9,21 @@ .. versionadded:: 0.5 This extension can generate automatic links to the documentation of objects in -other projects. This works as follows: +other projects. + +Usage is simple: whenever Sphinx encounters a cross-reference that has no +matching target in the current documentation set, it looks for targets in the +documentation sets configured in :confval:`intersphinx_mapping`. A reference +like ``:py:class:`zipfile.ZipFile``` can then link to the Python documentation +for the ZipFile class, without you having to specify where it is located +exactly. + +When using the "new" format (see below), you can even force lookup in a foreign +set by prefixing the link target appropriately. A link like ``:ref:`comparison +manual <python:comparisons>``` will then link to the label "comparisons" in the +doc set "python", if it exists. + +Behind the scenes, this works as follows: * Each Sphinx HTML build creates a file named :file:`objects.inv` that contains a mapping from object names to URIs relative to the HTML set's root. |
