Skip to main content

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

  1. You must add the tabs_selector configuration to conf.py; otherwise, the plugin will not take effect. Therefore, you can use the tabs_selector configuration to control the activation of the plugin.
  2. If both the sphinx_tabs plugin and the sphinx_tabs_selector plugin are added to the extensions in conf.py, for the sphinx_tabs_selector plugin to work, it must be added after sphinx_tabs.
  3. The sphinx_tabs_selector plugin can be used independently even if the sphinx_tabs plugin is not added to conf.py.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx_tabs_selector-1.0.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_tabs_selector-1.0.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

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

Hashes for sphinx_tabs_selector-1.0.2.tar.gz
Algorithm Hash digest
SHA256 408d618f174bd3397a5d2d7ecdb0dcccfd85d3ae9b5ca1dd0eb1550e743e3a9b
MD5 d115de8635f5048a799979cee3f78f60
BLAKE2b-256 da7e3aa479fba2a84d2bf0397252072857feb919f32ac83b9f3b2569acb18743

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphinx_tabs_selector-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_tabs_selector-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9da517901ea959dffd867d563b500474dc83e2ebf8daed2135a17cbd3c60cf77
MD5 33f815bd4506968ff9e1ab9b168ff180
BLAKE2b-256 505c226cbe1d75b77dc180decc9135759a5131a8ccb64e692b6fcfcb524f982a

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page