module documentation

Extension to save typing and prevent hard-coding of base URLs in reST files. This adds a new config value called ``extlinks`` that is created like this:: extlinks = {'exmpl': ('https://example.invalid/%s.html', caption), ...} Now you can use e.g. :exmpl:`foo` in your documents. This will create a link to ``https://example.invalid/foo.html``. The link caption depends on the *caption* value given: - If it is ``None``, the caption will be the full URL. - If it is a string, it must contain ``%s`` exactly once. In this case the caption will be *caption* with the role content substituted for ``%s``. You can also give an explicit caption, e.g. :exmpl:`Foo <foo>`. Both, the url string and the caption string must escape ``%`` as ``%%``.

Class ExternalLinksChecker For each external link, check if it can be replaced by an extlink.
Function make_link_role Undocumented
Function setup Undocumented
Function setup_link_roles Undocumented
Variable logger Undocumented
def make_link_role(name, base_url, caption): (source)

Undocumented

Parameters
name:strUndocumented
base_url:strUndocumented
caption:strUndocumented
Returns
RoleFunctionUndocumented
def setup(app): (source)

Undocumented

Parameters
app:SphinxUndocumented
Returns
dict[str, Any]Undocumented
def setup_link_roles(app): (source)

Undocumented

Parameters
app:SphinxUndocumented

Undocumented