Skip to content

Commit 6b43623

Browse files
authored
📚 DOCS: updating summary info (#21)
1 parent 2d500cf commit 6b43623

File tree

3 files changed

+27
-9
lines changed

3 files changed

+27
-9
lines changed

‎README.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# sphinx-togglebutton
22

33
A small sphinx extension to make it possible to add a "toggle button" to
4-
sections of your page.
4+
sections of your page. This allows you to:
5+
6+
- Collapse Sphinx admonitions (notes, warnings, etc) so that their content is hidden
7+
until users click a toggle button.
8+
- Collapse arbitrary chunks of content on your page with a `collapse` directive.
59

610
![demo gif](docs/_static/demo.gif)
711

‎docs/index.rst‎

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ sphinx-togglebutton
33
===================
44

55
A 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

3543
Installation
3644
============
@@ -63,9 +71,15 @@ Usage
6371

6472
There 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

7185
Dropdown admonitions by adding classes

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
setup(
1616
name="sphinx-togglebutton",
1717
version=version,
18-
description="Add a toggle button to items on a page.",
18+
description="Toggle page content and collapse admonitions in Sphinx.",
1919
long_description=readme_text,
2020
long_description_content_type="text/markdown",
2121
author="Chris Holdgraf",

0 commit comments

Comments
 (0)