File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
Author: Akshay Mestry <[email protected] >
6
6
Created on: Friday, February 21 2025
7
- Last updated on: Monday , March 03 2025
7
+ Last updated on: Saturday , March 08 2025
8
8
9
9
This module defines a collection of utility functions used for
10
10
customising the SMART Sphinx Theme. These utilities focus on enhancing
@@ -89,8 +89,18 @@ def make_toc_collapsible(tree: bs4.BeautifulSoup) -> None:
89
89
type = "button" ,
90
90
** {"@click.prevent.stop" : "expanded = !expanded" },
91
91
)
92
- i = tree .new_tag ("i" , attrs = {"class" : "fa-solid fa-circle-plus" })
93
- button .append (i )
92
+ label = tree .new_tag ("span" , attrs = {"class" : "sr-only" })
93
+ button .append (label )
94
+ svg = bs4 .BeautifulSoup (
95
+ (
96
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 '
97
+ '24" width="18px" height="18px" stroke="none" '
98
+ 'fill="currentColor"><path d="M10 6L8.59 7.41 13.17 12l-4.'
99
+ '58 4.59L10 18l6-6z"/></svg>'
100
+ ),
101
+ "html.parser" ,
102
+ ).svg
103
+ button .append (svg ) # type:ignore[arg-type]
94
104
link .append (button )
95
105
96
106
You can’t perform that action at this time.
0 commit comments