================================= Example of sphinxcontrib.linkattr ================================= `Homepage `_ Demo ==== - external link: `GitHub.com `_ - internal link: :doc:`subpage` .. toctree:: :maxdepth: 1 :caption: Contents: subpage Other Demos =========== - `*open in new tab* link with a Font Awesome icon `_ - `*open in new tab* link with a svg image icon `_ ----- From `README.md `_ =================================================================================================== A Sphinx extension, which overrides attributes of internal/external links. - `tests/simple/ `_ (demo: this page) A simple example with an *open in new tab* function and a suffix `[external link]`. - In `conf.py` .. code-block:: python extensions += ['sphinxcontrib.linkattr'] linkattr_suffix_external = ' [external link]'