class _EpydocLinker(DocstringLinker): (source)
Known subclasses: pydoctor.linker._CachedEpydocLinker
This linker implements the xref lookup logic.
Exception |
|
Encapsulate a link tag that is not actually a link because we count not resolve the name. |
Method | __init__ |
Undocumented |
Method | disable |
By default, when linkng to an object on the same page, the linker will generate an URL that links to the anchor only, this will avoid reloading the page needlessly. But sometimes we're using a linker to present the content on another page... |
Method | link |
Format a link to a Python identifier. This will resolve the identifier like Python itself would. |
Method | link |
Format a cross-reference link to a Python identifier. This will resolve the identifier to any reasonable target, even if it has to look in places where Python itself would not. |
Method | look |
Return link for `name` based on intersphinx inventory. |
Method | look |
Undocumented |
Method | resolve |
Resolve a Python identifier. This will resolve the identifier like Python itself would. |
Instance Variable | obj |
Undocumented |
Instance Variable | same |
Undocumented |
Instance Variable | strict |
Undocumented |
Static Method | _create |
Create a link with the special 'intersphinx-link' CSS class. |
Method | _resolve |
Resolve a crossreference link to a Python identifier. This will resolve the identifier to any reasonable target, even if it has to look in places where Python itself would not. |
pydoctor.linker._CachedEpydocLinker
Undocumented
Parameters | |
obj:model.Documentable | Undocumented |
samebool | Undocumented |
strict:bool | Undocumented |
By default, when linkng to an object on the same page, the linker will generate an URL that links to the anchor only, this will avoid reloading the page needlessly. But sometimes we're using a linker to present the content on another page. This context manager will make the linker always generate full URLs.
Returns | |
Iterator[ | Undocumented |
pydoctor.linker._CachedEpydocLinker
Format a link to a Python identifier. This will resolve the identifier like Python itself would.
Parameters | |
identifier:str | Undocumented |
label:Flattenable | The label to show for the link. |
target | The name of the Python identifier that should be linked to. |
Returns | |
Tag | The link, or just the label if the target was not found. |
pydoctor.linker._CachedEpydocLinker
Format a cross-reference link to a Python identifier. This will resolve the identifier to any reasonable target, even if it has to look in places where Python itself would not.
Parameters | |
target:str | The name of the Python identifier that should be linked to. |
label:Flattenable | The label to show for the link. |
lineno:int | The line number within the docstring at which the crossreference is located. |
Returns | |
Tag | The link, or just the label if the target was not found. In either case, the returned top-level tag will be <code>. |
Undocumented
Parameters | |
name:str | Undocumented |
candidates:Iterable[ | Undocumented |
lineno:int | Undocumented |
Returns | |
Optional[ | Undocumented |
Create a link with the special 'intersphinx-link' CSS class.
Parameters | |
label:Flattenable | Undocumented |
url:str | Undocumented |
Returns | |
Tag | Undocumented |
Resolve a crossreference link to a Python identifier. This will resolve the identifier to any reasonable target, even if it has to look in places where Python itself would not.
Parameters | |
identifier:str | The name of the Python identifier that should be linked to. |
lineno:int | The line number within the docstring at which the crossreference is located. |
Returns | |
Union[ | The referenced object within our system, or the URL of an external target (found via Intersphinx). |
Raises | |
LookupError | If identifier could not be resolved. |