Project: sphinx-new-tab-link

Open external links in new tabs of the browser in Sphinx HTML documents

Project Details

Latest version
0.2.1
Home Page
https://github.com/ftnext/sphinx-new-tab-link
PyPI Page
https://pypi.org/project/sphinx-new-tab-link/

Project Popularity

PageRank
0.0017384401496561093
Number of downloads
142479

sphinx-new-tab-link

testing workflow PyPI version Python Versions

Open external links in new tabs of the browser in Sphinx HTML documents

Overview

If you enable sphinx_new_tab_link, external links of built HTML are opened in new tabs of your browser.

The reST

External link: `Example <https://example.com/>`_

is converted into

External link: <a class="reference external" href="https://example.com/" rel="noopener noreferrer" target="_blank">Example</a>

Usage

First, create your Sphinx documentation.

Then edit conf.py to use this extension.

extensions = [
    "sphinx_new_tab_link",
]

Enjoy documentation!🙌