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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c3784137da9b1a198fb0daca92f54b52e3ae849626cfd68b1cc4c8532b3dc96 |
|
MD5 | 75a339cf03e798170e8316277bd6ae1c |
|
BLAKE2b-256 | 090eb7fbdbc2a5fd47e5626b51c3ed55e0e0b102c76f5f8da769f46c7e0a5501 |
Close
Hashes for sphinx_new_tab_link-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 001f4e1d31d428ee244c3c28e93d71b80aa21cf74cba06d591aa4d12615b411c |
|
MD5 | a9e503844bc2db990ed03897d25af549 |
|
BLAKE2b-256 | 69297768b02ec03acf39e05eb46f818270011b6ef3f1ec459d7c9bddea51430d |