It is used to extract the specified tabs content from the RST (reStructuredText) document.
Project description
sphinx_tabs_selector
This plugin is created based on the sphinx_tabs plugin and supports all formats supported by sphinx_tabs.
In HTML displays, tabs can be switched by clicking. However, this switching functionality is not supported
when generating certain specific formats, such as PDF. This plugin is designed to select the content of specified
Sphinx tabs, facilitating Sphinx to generate non - HTML format content.
Installation
pip install sphinx-tabs-selector
Usage
Add the following configuration to conf.py:
extensions = [
...
'sphinx_tabs_selector.selector',
...
]
# This is used to configure the tabs to be selected. If this item is not configured, the plugin will not work.
# The configuration item is a list. Each element in the list is a string, which is the name of the tab to be selected.
# If the tab is nested, you need to write down all the names of the tabs in the nesting path.
tabs_selector = ["tab1_name","tab2_name","tab3_name"]
For the way of writing tabs in RST files, you can refer to the documentation of the sphinx_tabs plugin.
Notes
- You must add the
tabs_selectorconfiguration toconf.py; otherwise, the plugin will not take effect. Therefore, you can use thetabs_selectorconfiguration to control the activation of the plugin. - If both the
sphinx_tabsplugin and thesphinx_tabs_selectorplugin are added to theextensionsinconf.py, for thesphinx_tabs_selectorplugin to work, it must be added aftersphinx_tabs. - The
sphinx_tabs_selectorplugin can be used independently even if thesphinx_tabsplugin is not added toconf.py.
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_tabs_selector-1.0.2.tar.gz.
File metadata
- Download URL: sphinx_tabs_selector-1.0.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
408d618f174bd3397a5d2d7ecdb0dcccfd85d3ae9b5ca1dd0eb1550e743e3a9b
|
|
| MD5 |
d115de8635f5048a799979cee3f78f60
|
|
| BLAKE2b-256 |
da7e3aa479fba2a84d2bf0397252072857feb919f32ac83b9f3b2569acb18743
|
Provenance
The following attestation bundles were made for sphinx_tabs_selector-1.0.2.tar.gz:
Publisher:
python-publish.yml on TerraJuly/sphinx_tabs_selector
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_tabs_selector-1.0.2.tar.gz -
Subject digest:
408d618f174bd3397a5d2d7ecdb0dcccfd85d3ae9b5ca1dd0eb1550e743e3a9b - Sigstore transparency entry: 196502977
- Sigstore integration time:
-
Permalink:
TerraJuly/sphinx_tabs_selector@f202e8e66e0cd93f96a7fc46ab10ea3b88d32bab -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/TerraJuly
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f202e8e66e0cd93f96a7fc46ab10ea3b88d32bab -
Trigger Event:
release
-
Statement type:
File details
Details for the file sphinx_tabs_selector-1.0.2-py3-none-any.whl.
File metadata
- Download URL: sphinx_tabs_selector-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9da517901ea959dffd867d563b500474dc83e2ebf8daed2135a17cbd3c60cf77
|
|
| MD5 |
33f815bd4506968ff9e1ab9b168ff180
|
|
| BLAKE2b-256 |
505c226cbe1d75b77dc180decc9135759a5131a8ccb64e692b6fcfcb524f982a
|
Provenance
The following attestation bundles were made for sphinx_tabs_selector-1.0.2-py3-none-any.whl:
Publisher:
python-publish.yml on TerraJuly/sphinx_tabs_selector
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_tabs_selector-1.0.2-py3-none-any.whl -
Subject digest:
9da517901ea959dffd867d563b500474dc83e2ebf8daed2135a17cbd3c60cf77 - Sigstore transparency entry: 196502979
- Sigstore integration time:
-
Permalink:
TerraJuly/sphinx_tabs_selector@f202e8e66e0cd93f96a7fc46ab10ea3b88d32bab -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/TerraJuly
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f202e8e66e0cd93f96a7fc46ab10ea3b88d32bab -
Trigger Event:
release
-
Statement type: