Open external links in new tabs of the browser in Sphinx HTML documents
Project description
sphinx-new-tab-link
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",
]
Configuration
new_tab_link_show_external_link_icon
- Type:
bool
- Default:
False
If you want to show external links with icons, set this to True
in your conf.py
.
new_tab_link_show_external_link_icon = True
Enjoy documentation!🙌
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for sphinx_new_tab_link-0.5.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e45116fd91b9d659b03383ff2a39ff5bfba563dbf45120196c19000e0c1f9a4 |
|
MD5 | 5934d641a03adcce5cfc516a300a5446 |
|
BLAKE2b-256 | 4156139d2d2b0d984b60e24ced8e7ef3e37413a527b5433d6fbae96b23d206b6 |
Close
Hashes for sphinx_new_tab_link-0.5.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cbe241631fc92ecb9772659c34a7b8138a51987405d581486bee816c8c476c4 |
|
MD5 | 1718e728a934547da41ae524330f155a |
|
BLAKE2b-256 | f0db4e648a078be091844d63c1cc5d1e486f12087667eb77d141903053b2249a |