@@ -3,7 +3,13 @@ sphinx-togglebutton
33===================
44
55A small sphinx extension to make it possible to add a "toggle button" to
6- sections of your page.
6+ sections of your page. This allows you to:
7+
8+ - Collapse admonitions (notes, warnings, etc) so that their content is hidden
9+ until users click a toggle button. See :ref: `dropdown-admonitions `.
10+ - Collapse arbitrary chunks of content on your page with a ``toggle `` directive.
11+ See :ref: `toggle-directive `.
12+
713
814.. admonition :: For example, click the "+" button to the right:
915 :class: dropdown
@@ -26,11 +32,13 @@ For example, click the toggle button to the right just below.
2632
2733 See :ref: `usage ` for more information.
2834
29- .. caution ::
3035
31- ``sphinx-togglebutton `` is designed for the
32- `sphinx-book-theme <https://sphinx-book-theme.readthedocs.io/ >`_. It should work
33- properly on other themes, but if you notice any CSS bugs, please open an issue!
36+ .. admonition :: Check out sphinx-panels as well!
37+ :class: tip
38+
39+ For a bootstrap-based "dropdown" directive that uses pure CSS, check out
40+ `Sphinx Panels <https://sphinx-panels.readthedocs.io/en/latest/#dropdown-usage >`_
41+
3442
3543Installation
3644============
6371
6472There are two main ways to use ``sphinx-togglebutton ``:
6573
66- * Create dropdown admonitions with the ``dropdown `` class
67- * Make arbitrary chunks of content "toggle-able" with the ``toggle:: `` directive
74+ - Collapse admonitions with the ``dropdown `` class
75+ - Make arbitrary chunks of content "toggle-able" with the ``toggle:: `` directive
76+
77+ .. caution ::
6878
79+ ``sphinx-togglebutton `` is designed for the
80+ `sphinx-book-theme <https://sphinx-book-theme.readthedocs.io/ >`_. It should work
81+ properly on other themes, but if you notice any CSS bugs, please open an issue!
82+
6983.. _dropdown-admonitions :
7084
7185Dropdown admonitions by adding classes
0 commit comments