Sphinx Tabs is a Sphinx extension that provides directives for creating tabbed content in Sphinx documentation when building HTML. It is actively maintained, with version 3.5.0 currently available, and releases frequently address compatibility with new Sphinx and Docutils versions.
pip install sphinx-tabsVerified import paths — ran on the pinned version, not inferred.
This quickstart guides you through setting up a basic Sphinx project, enabling the `sphinx-tabs` extension, and creating an example reStructuredText file with a tabbed interface. After building, you can view the tabbed content in the generated HTML documentation.
Upgrade your Sphinx version to 7 or newer (`pip install 'sphinx>=7'`) or pin sphinx-tabs to an older compatible version (`pip install 'sphinx-tabs<3.5.0'`).
Refactor your reStructuredText to use `.. tab::` or `.. group-tab::` for content that needs to include other files, or manually embed the content directly.
Standardize tab labels across all `.. tabs::` blocks that share the same group name to ensure proper synchronization.
Add `sphinx-tabs` to your `requirements.txt` file (e.g., `sphinx-tabs==3.5.0`) to ensure it's installed on Read The Docs.
If experiencing conflicts, check the issue trackers of both `sphinx-tabs` and your chosen Sphinx theme for known incompatibilities and potential workarounds or updates. You might need to adjust CSS or JavaScript, or consider alternative tab extensions if no fix is available.