Skip to content

Commit

Permalink
Merge pull request #36 from ru-fu/fix-expand-all
Browse files Browse the repository at this point in the history
config-options: fix JavaScript selector
  • Loading branch information
ru-fu authored Mar 27, 2024
2 parents 9323a45 + 29bca2f commit 52c59c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ $(document).ready(function() {
};

/* Add icons to expand/collapse all options for one section */
$('.configoption:first-of-type').before("<div class=\"expand-collapse\"><span class=\"expand-all\" title=\"Expand all\">⤋</span><span class=\"collapse-all\" title=\"Collapse all\">⤊</span></div>");
$('.configoption').before("<div class=\"expand-collapse\"><span class=\"expand-all\" title=\"Expand all\">⤋</span><span class=\"collapse-all\" title=\"Collapse all\">⤊</span></div>");
$('.configoption ~ .configoption').prev(".expand-collapse").remove();

/* Make the option lines expandable */
$('.configoption div.basicinfo').click(function() {
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = canonical-sphinx-extensions
version = 0.0.19
version = 0.0.20
author = Ruth Fuchss
author_email = [email protected]
description = A collection of Sphinx extensions used by Canonical documentation
Expand Down

0 comments on commit 52c59c7

Please sign in to comment.