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="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
new_tab_link_enable_referrer
- Type:
bool - Default:
False
If you want external links without rel="noreferrer", set this to True in your conf.py.
new_tab_link_enable_referrer = 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx_new_tab_link-0.8.1.tar.gz.
File metadata
- Download URL: sphinx_new_tab_link-0.8.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8b3b369b660824664fd51bacf126deb8f800364dae17b7142b5d0e17385f77f
|
|
| MD5 |
fb21dd20f8c1be12fc2215b11baeedc9
|
|
| BLAKE2b-256 |
be06a407a7bcaf4c8109b0be8a584084c5bd0975422b862043b4f58a7378dbab
|
Provenance
The following attestation bundles were made for sphinx_new_tab_link-0.8.1.tar.gz:
Publisher:
publish.yml on ftnext/sphinx-new-tab-link
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_new_tab_link-0.8.1.tar.gz -
Subject digest:
f8b3b369b660824664fd51bacf126deb8f800364dae17b7142b5d0e17385f77f - Sigstore transparency entry: 601239672
- Sigstore integration time:
-
Permalink:
ftnext/sphinx-new-tab-link@76eefc397b9cf7d1f8833500e94c7973c1f9ff3f -
Branch / Tag:
refs/tags/v0.8.1 - Owner: https://github.com/ftnext
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@76eefc397b9cf7d1f8833500e94c7973c1f9ff3f -
Trigger Event:
release
-
Statement type:
File details
Details for the file sphinx_new_tab_link-0.8.1-py3-none-any.whl.
File metadata
- Download URL: sphinx_new_tab_link-0.8.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd88be77deaab982b5fdd0be9ef63cfa93f14deab775ab423b6c856402a57ebd
|
|
| MD5 |
83a8717d55c3cc6b467d6e15ab279659
|
|
| BLAKE2b-256 |
ba2e5f42ac3e8e68b3878fed18a986160a97b671e7c44bdb4c99c963618ebeb7
|
Provenance
The following attestation bundles were made for sphinx_new_tab_link-0.8.1-py3-none-any.whl:
Publisher:
publish.yml on ftnext/sphinx-new-tab-link
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_new_tab_link-0.8.1-py3-none-any.whl -
Subject digest:
fd88be77deaab982b5fdd0be9ef63cfa93f14deab775ab423b6c856402a57ebd - Sigstore transparency entry: 601239675
- Sigstore integration time:
-
Permalink:
ftnext/sphinx-new-tab-link@76eefc397b9cf7d1f8833500e94c7973c1f9ff3f -
Branch / Tag:
refs/tags/v0.8.1 - Owner: https://github.com/ftnext
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@76eefc397b9cf7d1f8833500e94c7973c1f9ff3f -
Trigger Event:
release
-
Statement type: