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
Roles
External link with icon (Experimental)
External link: :icon-link:`Example <https://example.com/>`
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.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 634c92a1132923161c06b5603a74f7041e7dcec9478fe85fd7e464554a717778 |
|
MD5 | 2db2c19ba144973edfe718b1210ecc67 |
|
BLAKE2b-256 | 05ab41a9eaac62a0bc654acf58b82107cb0b8d757480917102e9a81fe0f36141 |
Close
Hashes for sphinx_new_tab_link-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3abe9d25bd1f4e898097c71ca1cdbd441bb0159c82376081601181c3b7287479 |
|
MD5 | 10b99cbe02b67f56ac144152a52d7660 |
|
BLAKE2b-256 | cab5afd72c46ec9eab85cff0f09aacd1cce11f171fe27f763268d90afe21cf87 |