Insert links to objects documented in remote Sphinx documentation. This works as follows: * Each Sphinx HTML build creates a file named "objects.inv" that contains a mapping from object names to URIs relative to the HTML set's root. * Projects using the Intersphinx extension can specify links to such mapping files in the `intersphinx_mapping` config value. The mapping will then be used to resolve otherwise missing references to objects into links to the other documentation. * By default, the mapping file is assumed to be at the same location as the rest of the documentation; however, the location of the mapping file can also be specified individually, e.g. if the docs should be buildable without Internet access.
Class |
|
Custom dispatcher for external role. |
Class |
|
Undocumented |
Class |
|
pending_xref node resolver for intersphinx role. |
Class |
|
Inventory adapter for environment |
Function | fetch |
Fetch, parse and return an intersphinx inventory file. |
Function | fetch |
Undocumented |
Function | inspect |
Debug functionality to print out an inventory |
Function | install |
Enable IntersphinxDispatcher. |
Function | inventory |
Undocumented |
Function | load |
Load all intersphinx mappings into the environment. |
Function | missing |
Attempt to resolve a missing reference via intersphinx references. |
Function | normalize |
Undocumented |
Function | resolve |
Attempt to resolve a missing reference via intersphinx references. |
Function | resolve |
Attempt to resolve a missing reference via intersphinx references. |
Function | resolve |
Attempt to resolve a missing reference via intersphinx references. |
Function | setup |
Undocumented |
Variable | logger |
Undocumented |
Function | _create |
Undocumented |
Function | _get |
Gets version of *url* with basic auth passwords obscured. This function returns results suitable for printing and logging. |
Function | _read |
Reads data from *url* with an HTTP *GET*. |
Function | _resolve |
Undocumented |
Function | _resolve |
Undocumented |
Function | _resolve |
Undocumented |
Function | _strip |
Returns *url* with basic auth credentials removed. Also returns the basic auth username and password if they're present in *url*. |
Undocumented
Parameters | |
env:BuildEnvironment | Undocumented |
invstr | Undocumented |
Returns | |
bool | Undocumented |
Attempt to resolve a missing reference via intersphinx references.
Parameters | |
app:Sphinx | Undocumented |
env:BuildEnvironment | Undocumented |
node:pending_xref | Undocumented |
contnode:TextElement | Undocumented |
Returns | |
Element|None | Undocumented |
Attempt to resolve a missing reference via intersphinx references. Resolution is tried with the target as is in any inventory.
Parameters | |
env:BuildEnvironment | Undocumented |
honorbool | Undocumented |
node:pending_xref | Undocumented |
contnode:TextElement | Undocumented |
Returns | |
Element|None | Undocumented |
Attempt to resolve a missing reference via intersphinx references. Resolution is tried first with the target as is in any inventory. If this does not succeed, then the target is split by the first ``:``, to form ``inv_name:newtarget``. If ``inv_name`` is a named inventory, then resolution is tried in that inventory with the new target.
Parameters | |
env:BuildEnvironment | Undocumented |
node:pending_xref | Undocumented |
contnode:TextElement | Undocumented |
Returns | |
Element|None | Undocumented |
Attempt to resolve a missing reference via intersphinx references. Resolution is tried in the given inventory with the target as is. Requires ``inventory_exists(env, inv_name)``.
Parameters | |
env:BuildEnvironment | Undocumented |
invstr | Undocumented |
node:pending_xref | Undocumented |
contnode:TextElement | Undocumented |
Returns | |
Element|None | Undocumented |
Undocumented
Parameters | |
domain:Domain | Undocumented |
invstr|None | Undocumented |
data:InventoryItem | Undocumented |
node:pending_xref | Undocumented |
contnode:TextElement | Undocumented |
Returns | |
Element | Undocumented |
Gets version of *url* with basic auth passwords obscured. This function returns results suitable for printing and logging. E.g.: https://user:12345@example.com => https://user@example.com :param url: a url :type url: ``str`` :return: *url* with password removed :rtype: ``str``
Parameters | |
url:str | Undocumented |
Returns | |
str | Undocumented |
Reads data from *url* with an HTTP *GET*. This function supports fetching from resources which use basic HTTP auth as laid out by RFC1738 § 3.1. See § 5 for grammar definitions for URLs. .. seealso: https://www.ietf.org/rfc/rfc1738.txt :param url: URL of an HTTP resource :type url: ``str`` :return: data read from resource described by *url* :rtype: ``file``-like object
Parameters | |
url:str | Undocumented |
config:Config|None | Undocumented |
Returns | |
IO | Undocumented |
Undocumented
Parameters | |
env:BuildEnvironment | Undocumented |
invstr|None | Undocumented |
inventory:Inventory | Undocumented |
honorbool | Undocumented |
node:pending_xref | Undocumented |
contnode:TextElement | Undocumented |
Returns | |
Element|None | Undocumented |
Undocumented
Parameters | |
env:BuildEnvironment | Undocumented |
invstr|None | Undocumented |
inventory:Inventory | Undocumented |
honorbool | Undocumented |
domain:Domain | Undocumented |
objtypes:list[ | Undocumented |
node:pending_xref | Undocumented |
contnode:TextElement | Undocumented |
Returns | |
Element|None | Undocumented |
Returns *url* with basic auth credentials removed. Also returns the basic auth username and password if they're present in *url*. E.g.: https://user:pass@example.com => https://example.com *url* need not include basic auth credentials. :param url: url which may or may not contain basic auth credentials :type url: ``str`` :return: *url* with any basic auth creds removed :rtype: ``str``
Parameters | |
url:str | Undocumented |
Returns | |
str | Undocumented |