class DocstringLinker:
Known subclasses: pydoctor.test.NotFoundLinker
, pydoctor.test.test_epydoc2stan.RecordingAnnotationLinker
, pydoctor.epydoc2stan._EpydocLinker
Method | link_to |
Format a link to a Python identifier. This will resolve the identifier like Python itself would. |
Method | link_xref |
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 | resolve_identifier |
Resolve a Python identifier. This will resolve the identifier like Python itself would. |
pydoctor.test.NotFoundLinker
, pydoctor.test.test_epydoc2stan.RecordingAnnotationLinker
, pydoctor.epydoc2stan._EpydocLinker
Parameters | |
target:str | The name of the Python identifier that should be linked to. |
label:Flattenable | The label to show for the link. |
Returns | |
Tag | The link, or just the label if the target was not found. |
pydoctor.test.NotFoundLinker
, pydoctor.test.test_epydoc2stan.RecordingAnnotationLinker
, pydoctor.epydoc2stan._EpydocLinker
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>. |
pydoctor.test.NotFoundLinker
, pydoctor.test.test_epydoc2stan.RecordingAnnotationLinker
, pydoctor.epydoc2stan._EpydocLinker
Parameters | |
identifier:str | The name of the Python identifier that should be linked to. |
Returns | |
Optional[ | The URL of the target, or None if not found. |