$npx skillfedfor your agent

sphinx-togglebutton

Toggle page content and collapse admonitions in Sphinx.

Worth itPyPI SphinxReleased Mar 2026519.4K downloads / moMIT LicensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — sphinx_togglebutton-0.4.5-py3-none-any.whl
v0.4.5 · released 2026-03-27 · 4 runtime deps: setuptools, wheel, sphinx, docutils

Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT License, and solves a common documentation UX problem with low install friction. It's a lightweight, focused extension that integrates cleanly into Sphinx workflows.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with a pure-Python wheel distribution.
  • The package is actively maintained with a recent release and no known vulnerabilities.
  • Depends on standard Sphinx ecosystem packages.

License · maintenance · safety

MIT License (permissive) — MIT License permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial documentation projects.

last release 2026-03-27 (140 days) · last repo commit 2026-03-27 · 47 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 519,405 downloads/mo, #6,217 on PyPI

Verify before relying

pip install sphinx-togglebutton

Then in conf.py:
extensions = ['sphinx_togglebutton']

In your .rst file:
.. note::
    :class: dropdown

    This is my note.
  • Whether the extension works with all current Sphinx versions or has specific version constraints
  • Performance impact when toggling large numbers of collapsed sections
Same gist for agents: .md · .json

What it is and what it does

sphinx-togglebutton is a Sphinx extension that adds interactive collapse/expand functionality to your documentation. It lets you hide admonitions (notes, warnings, etc.) behind toggle buttons so readers only see content when they click, and also provides a generic container directive for collapsing arbitrary sections. The extension supports showing content expanded or collapsed by default via CSS classes, and includes internationalization for toggle button labels across many languages.

You install it by adding it to your Sphinx conf.py extensions list, then mark admonitions with the `dropdown` class or use container directives with toggle classes. It requires sphinx and docutils as runtime dependencies and has no compiled components, making it straightforward to install and use in any Sphinx-based documentation workflow.

Use it for

  • Hide verbose admonitions (warnings, notes) in documentation to reduce visual clutter while keeping them accessible
  • Collapse code examples or implementation details that readers may not need on first read
  • Create expandable FAQ or troubleshooting sections where each answer starts hidden
  • Organize long documentation pages by collapsing optional or advanced content sections

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, uses a permissive MIT License, and solves a common documentation UX problem with low install friction. It's a lightweight, focused extension that integrates cleanly into Sphinx workflows.

Install

sphinx-togglebutton on PyPI

Before you install

Low install friction with a pure-Python wheel distribution. The package is actively maintained with a recent release and no known vulnerabilities. Depends on standard Sphinx ecosystem packages.

License in practice

MIT License permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial documentation projects.

Quickstart

pip install sphinx-togglebutton

Then in conf.py:
extensions = ['sphinx_togglebutton']

In your .rst file:
.. note::
    :class: dropdown

    This is my note.

Verify before relying

  • Whether the extension works with all current Sphinx versions or has specific version constraints
  • Performance impact when toggling large numbers of collapsed sections

Package facts

LicenseMIT License permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
4 packages
setuptoolswheelsphinxdocutils
MaintenanceActively maintained 140 days since the last release
Last repo commit
First released
Downloads519,405 / month, #6,217 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT License

Evidence: sphinx_togglebutton-0.4.5-py3-none-any.whl

Tags

Capabilities
sphinx collapsible admonitionssphinx toggle button extensionhide show sphinx contentsphinx dropdown sectionssphinx collapsible documentation
Topics
sphinx-extensiondocumentation-ux

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “sphinx collapsible admonitions”

Give your agent the search over MCP, or paste the wish link into any chat.

More Sphinx packages

docstring-parser Worth it
PyPI · Python Modules · released Apr 2026

Parses Python docstrings in ReST, Google, Numpydoc, and Epydoc formats, extracting structured information like descriptions, parameters, return types, and exceptions.

Install it if you need to programmatically read and extract structured data from Python docstrings.

MITpure Python · 3.8+
274.9Mdownloads / mo
Sphinx Worth it
PyPI · Software Development · released Dec 2025

Sphinx generates professional documentation from reStructuredText source files, producing HTML, PDF, EPUB, and other formats with automatic cross-references, code highlighting, and hierarchical navigation.

BSD-2-Clausepure Python · 3.12+
91.8Mdownloads / mo
sphinxcontrib-serializinghtml With conditions
PyPI · Utilities · released Jul 2024

A Sphinx extension that outputs documentation in serialized HTML formats (JSON and pickle) alongside standard HTML.

BSD-3-Clausepure Python · 3.9+dormant
30.5Mdownloads / mo
alabaster Worth it
PyPI · Documentation · released Jul 2024

Alabaster is a clean, responsive Sphinx theme for documentation that requires Python 3.10 or newer and Sphinx 6.2 or newer.

BSD-3-Clausepure Python · 3.10+dormant
30.4Mdownloads / mo
sphinxcontrib-htmlhelp With conditions
PyPI · Utilities · released Jul 2024

A Sphinx extension that generates HTML help files from reStructuredText documentation source.

BSD-3-Clausepure Python · 3.9+dormant
27.7Mdownloads / mo
sphinxcontrib-qthelp With conditions
PyPI · Utilities · released Jul 2024

A Sphinx extension that converts documentation source files into QtHelp format, enabling integration with Qt-based help systems and documentation viewers.

However, be aware that maintenance is dormant—if you rely on it long-term, monitor Sphinx compatibility and consider whether QtHelp remains the right format for your…

BSD-3-Clausepure Python · 3.9+dormant
27.6Mdownloads / mo

See also sphinx-panels · sphinx-copybutton · sphinx-toggleprompt · sphinxcontrib-log-cabinet · sphinx-substitution-extensions · sphinx-jinja · sphinx-tabs · sphinxcontrib-video · sphinx-rtd-dark-mode · changelog