
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
sphinx-tabs-selector
Advanced tools
It is used to extract the specified tabs content from the RST (reStructuredText) document.
This plugin is created based on the sphinx_tabs
plugin and supports all formats supported by sphinx_tabs
v3.4.7.
##Features
sphinx_tabs
with v3.4.7.tabs_include
and tabs_exclude
configuration. You can use Unix glob pattern to
select multiple tabs. For example:
tabs_include = ["tab1_*", "tab2_*", "tab3_*"]
will select all tabs that start with tab1_
, tab2_
, tab3_
.tabs_exclude = ["tab4_*", "tab5_*", "tab6_*"]
to exclude all tabs that start with tab4_
, tab5_
, tab6_
.tabs_flat
is set to True
, and builder is latex
, the tabs will be displayed in flat mode, and pdf will show
the tab with blue,bold tab name and the tab contents will be surrounded by a box. The non-nested tabs are displayed
very well. But the nested tabs are displayed not very well.pip install sphinx-tabs-selector
Add the following configuration to conf.py
:
extensions = [
...
'sphinx_tabs_selector.selector',
...
]
# tabs_include is used to configure the tabs to be selected. Support Unix glob pattern.
# 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_include = ["tab1_name", "tab2_name", "tab3_*"]
# tabs_exclude is used to configure the tabs to be skipped. Support Unix glob pattern.
# The configuration item is a list. Each element in the list is a string, which is the name of the tab to be skipped.
tabs_exclude = ["tab4_name", "tab5_name", "tab6_*"]
# default is False. If True, the tabs will be displayed in flat mode. Otherwise, the tabs will be displayed in switching mode.
tabs_flat = True
For the way of writing tabs in RST files, you can refer to the documentation of the sphinx_tabs plugin. Thanks for the author of the sphinx_tabs plugin.
tabs_include
or tabs_exclude
configuration to conf.py
;
Otherwise, the plugin will not take effect. Therefore, you can use the tabs_include
or tabs_exclude
configuration
to control the activation of the plugin.
tabs_include
or tabs_exclude
configuration is added, the plugin will be activated.tabs_include
or tabs_exclude
configuration is not added, the plugin will not be activated.tabs_include
is added, the plugin will only select the tabs in the tabs_include
configuration.tabs_exclude
is added, the plugin will select all tabs except the tabs in the tabs_exclude
configuration.tabs_include
and tabs_exclude
are added, the plugin will select the tabs in the tabs_include
configuration, and exclude the tabs in the tabs_exclude
configuration. But excluding takes precedence over
selecting.tabs_flat
configuration to conf.py
to control the display mode of the tabs.
tabs_flat
configuration is not added, the tabs will be displayed in switching mode.tabs_flat
configuration is added and set to True
, the tabs will be displayed in flat mode.tabs_flat
configuration is added and set to False
, the tabs will be displayed in switching mode.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
.sphinx_tabs_selector
plugin can be used independently even if the sphinx_tabs
plugin is not added to
conf.py
.sphinx_tabs_selector
plugin in conf.py
and not set the sphinx_tabs
plugin, and tabs_flat
is
set to False
or not set, and not set the tabs_include
or tabs_exclude
configuration, the plugin will work as
the sphinx_tabs
plugin with v3.4.7.FAQs
It is used to extract the specified tabs content from the RST (reStructuredText) document.
We found that sphinx-tabs-selector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.