Sphinx Inline Tabs is a Sphinx extension that allows you to add inline tabbed content to your documentation. This is useful for showing different command-line flags, code examples, or other content based on user preferences. The current version is `2025.12.21.14` and it follows a non-strict release cadence, often aligned with Sphinx releases or bug fixes.
pip install sphinx-inline-tabsVerified import paths — ran on the pinned version, not inferred.
To quickly use `sphinx-inline-tabs`, first create a basic Sphinx project (`sphinx-quickstart`). Then, add `sphinx_inline_tabs` to the `extensions` list in your `conf.py` file. Finally, define tabbed content using the `.. tabs::` directive and `.. group-tab::` (or `.. tab::`) sub-directives in your reStructuredText files, ensuring correct indentation. The provided code snippet shows the `conf.py` modification and an example RST structure.
Ensure `extensions = ['sphinx_inline_tabs']` (or append to existing list) is present in your `conf.py`.
Carefully follow the examples in the documentation regarding indentation. `.. group-tab::` must be indented relative to `.. tabs::`, and its content must be indented further.
If tabs look broken, try switching to a standard Sphinx theme (e.g., `furo`, `alabaster`). If the issue persists, inspect browser developer tools for CSS conflicts or open an issue on the library's GitHub page.