Description
sphinx-tabs is a Sphinx extension that adds tabbed content to documentation built for HTML. You write a tab set in your reStructuredText source, and readers switch between tabs on the page. A tab's content can be shown by clicking its label, and clicking the open tab hides it again. Keyboard support lets readers focus a tab set with the Tab key, move across tabs with the arrow keys and pick one with Enter. Grouped tabs let one tab selection change every tab set that uses the same label, and the choice can be remembered between pages if the browser allows it. To install it, add the extension to your conf.py and, on Read the Docs, list it in requirements.txt. A configuration option lets you enable other builders, such as linkcheck. The README includes a basic tabs example and contributing instructions that use pre-commit and tox.…
Highlights
- Tabbed content for Sphinx HTML documentation
- Keyboard navigation between tabs
- Grouped tabs that switch together
- Remembers the selected group tab if allowed
- Works on Read the Docs
Ratings & Reviews
No ratings yet
Be the first to rate Sphinx Tabs.
People also visit
Sphinx Tabs FAQ
What is sphinx-tabs?
A Sphinx extension that adds tabbed views to documentation built as HTML.
How do I install it?
Add the extension to the extensions list in conf.py. On Read the Docs, add it to requirements.txt at the project root.
Does it work with other builders?
Only the HTML builder by default. A configuration option lets you add other builders, such as linkcheck, to the list of compatible builders.
Can readers use the keyboard?
Yes. Readers can focus a tab set with Tab, move with the arrow keys and select a tab with Enter.
What are the best Sphinx Tabs alternatives?
Popular alternatives to Sphinx Tabs include Doc2dash, Docsify and Great Docs. See all Sphinx Tabs alternatives


