Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Apr 27, 2024
1 parent 08bf410 commit 22aa6f4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Features added
when turning annotations into strings.
Patch by Adam Turner.
* #10532: Add a new extension to support collapsible content in HTML,
``sphinx.ext.collapse``, which enables the :rst:dir:`collapsible` directive.
``sphinx.ext.collapse``, which enables the :rst:dir:`collapse` directive.
Patch by Adam Turner.

Bugs fixed
Expand Down
1 change: 1 addition & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
'sphinx.ext.viewcode',
'sphinx.ext.inheritance_diagram',
'sphinx.ext.coverage',
'sphinx.ext.collapse',
]
coverage_statistics_to_report = coverage_statistics_to_stdout = True
templates_path = ['_templates']
Expand Down
1 change: 1 addition & 0 deletions doc/usage/extensions/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ These extensions are built in and can be activated by respective entries in the
autodoc
autosectionlabel
autosummary
collapse
coverage
doctest
duration
Expand Down
4 changes: 2 additions & 2 deletions sphinx/ext/collapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
class collapsible(nodes.General, nodes.Element):
"""Node for collapsible content.
This is used by the :rst:dir:`collapsible` directive.
This is used by the :rst:dir:`collapse` directive.
"""


class summary(nodes.General, nodes.TextElement):
"""Node for the description for collapsible content.
This is used by the :rst:dir:`collapsible` directive.
This is used by the :rst:dir:`collapse` directive.
"""


Expand Down

0 comments on commit 22aa6f4

Please sign in to comment.