@@ -25,25 +25,14 @@ <h1 id="docs-header-title">
25
25
</ div >
26
26
< div class ="toc ">
27
27
{% for subdir in site.data.nav %}
28
- {% if subdir.toc[0] %}
29
28
< ul class ="sectlevel1 ">
30
- < input class ="toc-toggle-box " type ="checkbox " id ="{{ subdir.path }} "
31
- {% if page.url contains subdir.path %}
32
- checked =true
33
- {% endif %}
34
- />
29
+ < input class ="toc-toggle-box " type ="checkbox " id ="{{ subdir.path }} " {% if page.url contains subdir.path %}checked{% endif %} />
35
30
< li >
36
31
< span >
37
32
< label class ="toc-toggle " for ="{{ subdir.path }} " onclick ="event.stopPropagation() ">
38
33
< div class ="toc-toggle-container ">
39
34
< a class ="level1 " href ="{{ site.baseurl }}{{ subdir.path }} ">
40
- < a title ="expand {{ item.title | markdownify }} "
41
- {% if page.url contains subdir.path %}
42
- class ="bold toc-item "
43
- {% else %}
44
- class ="toc-item "
45
- {% endif %}
46
- >
35
+ < a title ="expand {{ item.title | markdownify }} " class ="{% if page.url contains subdir.path %}bold {% endif %}toc-item ">
47
36
{{ subdir.title | markdownify }}
48
37
</ a >
49
38
</ a >
@@ -52,126 +41,55 @@ <h1 id="docs-header-title">
52
41
</ span >
53
42
</ li >
54
43
{% for item in subdir.toc %}
55
- < div class ="itemcontents ">
56
- < ul class ="sectlevel1 ">
57
- < input class ="toc-toggle-box " type ="checkbox " id ="{{ item.path }} "
58
- {% if page.url contains item.path %}
59
- checked =true
60
- {% endif %}
61
- />
62
- < li >
63
- < span >
64
- < label class ="toc-toggle " for ="{{ item.path }} ">
65
- < div class ="toc-toggle-container ">
66
- < a class ="level2 " href ="{{ site.baseurl }}{{ item.path }} ">
67
- < a title ="expand {{ item.title | strip_html }} "
68
- {% if page.url contains item.path %}
69
- class ="bold toc-item "
70
- {% else %}
71
- class ="toc-item "
72
- {% endif %}
73
- >
74
- {{ item.title | markdownify }}
75
- </ a >
76
- </ a >
77
- </ div >
78
- </ label >
79
- </ span >
80
- </ li >
81
- {% if item.sections[0] %}
82
- {% for entry in item.sections %}
83
- < div class ="itemcontents ">
84
- < ul class ="sectlevel1 ">
85
- < input class ="toc-toggle-box " type ="checkbox " id ="{{ item.path }}#{{ entry.anchor }} "
86
- {% if endcapture contains entry.anchor %}
87
- checked =true
88
- {% endif %}
89
- />
90
- < li >
91
- < span >
92
- < label class ="toc-toggle "
93
- {% if entry.subsections[0] %}
94
- for ="{{ item.path }}#{{ entry.anchor }} "
95
- {% else %}
96
- {% endif %} >
97
- < div class ="toc-toggle-container ">
98
- {% if entry.subsections[0] %}
99
- < a class ="level3 ">
100
- < a
101
- id ="{{ item.path }}#{{entry.anchor}}-toc "
102
- href ="{{ site.baseurl }}{{ item.path }}#{{ entry.anchor }} "
103
- class ="toc-item "
104
- onclick ="document.getElementById('mobile-toggle').checked = false; updateCurrentToc('{{ item.path }}#{{ entry.anchor }}-toc', '{{ item.path }}#{{ entry.anchor }}'); "
105
- title ="expand {{ entry.heading | strip_html }} "
106
- >
107
- < script type ="text/javascript "> if ( window . location . hash == '#{{ entry.anchor }}' && window . location . href . includes ( '{{ item.path }}' ) ) initialiseCurrentToc ( '{{ item.path }}#{{entry.anchor}}-toc' , '{{ item.path }}#{{ entry.anchor }}' ) ;
108
- </ script >
109
- {{ entry.heading | markdownify }}
110
- </ a >
44
+ < div class ="itemcontents ">
45
+ < ul class ="sectlevel1 ">
46
+ < input class ="toc-toggle-box " type ="checkbox " id ="{{ item.path }} " {% if page.url contains item.path %}checked{% endif %} />
47
+ < li >
48
+ < span >
49
+ < label class ="toc-toggle " for ="{{ item.path }} ">
50
+ < div class ="toc-toggle-container ">
51
+ < a class ="level2 " href ="{{ site.baseurl }}{{ item.path }} ">
52
+ < a title ="expand {{ item.title | strip_html }} " class ="{% if page.url contains item.path %}bold {% endif %}toc-item ">
53
+ {{ item.title | markdownify }}
111
54
</ a >
112
- {% else %}
113
- < a class ="level3 ">
114
- < a id ="{{ item.path }}#{{entry.anchor}}-toc "
115
- title ="expand {{ entry.heading | strip_html }} "
116
- href ="{{ site.baseurl }}{{ item.path }}#{{ entry.anchor }} "
117
- onclick ="document.getElementById('mobile-toggle').checked = false; updateCurrentToc('{{ item.path }}#{{ entry.anchor }}-toc'); "
118
- class ="toc-item no-dropdown "
119
- >
120
- < script type ="text/javascript "> if ( window . location . hash == '#{{ entry.anchor }}' && window . location . href . includes ( '{{ item.path }}' ) )
121
- initialiseCurrentToc ( '{{ item.path }}#{{entry.anchor}}-toc' ) ;
122
- </ script >
123
- {{ entry.heading | markdownify }}
55
+ </ a >
56
+ </ div >
57
+ </ label >
58
+ </ span >
59
+ </ li >
60
+ {% for entry in item.sections %}
61
+ < div class ="itemcontents ">
62
+ < ul class ="sectlevel1 ">
63
+ < li >
64
+ < span >
65
+ < label class ="toc-toggle ">
66
+ < div class ="toc-toggle-container ">
67
+ < a class ="level3 ">
68
+ < a
69
+ href ="{{ site.baseurl }}{{ item.path }}#{{ entry.anchor }} "
70
+ onclick ="document.getElementById('mobile-toggle').checked = false "
71
+ class ="toc-item no-dropdown "
72
+ >
73
+ {{ entry.heading | markdownify }}
74
+ </ a >
124
75
</ a >
125
- </ a >
126
- {% endif %}
127
- </ div >
128
- </ label >
129
- </ span >
130
- </ li >
131
- {% if entry.subsections[0] %}
132
- {% for subentry in entry.subsections %}
133
- < div class ="itemcontents ">
134
- < ul class ="sectlevel1 ">
135
- < li >
136
- < span >
137
- < label class ="toc-toggle ">
138
- < div class ="toc-toggle-container ">
139
- < a class ="level4 ">
140
- < a class ="toc-item no-dropdown "
141
- href ="{{ site.baseurl }}{{ item.path }}#{{ subentry.anchor }} "
142
- onclick ="document.getElementById('mobile-toggle').checked = false; updateCurrentToc('{{ item.path }}#{{ entry.anchor }}-toc', '{{ item.path }}#{{ entry.anchor }}', '{{ item.path }}#{{ subentry.anchor }}-toc'); "
143
- id ="{{ item.path }}#{{subentry.anchor}}-toc "
144
- >
145
- < script type ="text/javascript "> if ( window . location . hash == '#{{ subentry.anchor }}' && window . location . href . includes ( '{{ item.path }}' ) ) initialiseCurrentToc ( '{{ item.path }}#{{ entry.anchor }}-toc' , '{{ item.path }}#{{ entry.anchor }}' , '{{ item.path }}#{{ subentry.anchor }}-toc' ) ;
146
- </ script >
147
- {{ subentry.heading | markdownify }}
148
- </ a >
149
- </ a >
150
- </ div >
151
- </ label >
152
- </ span >
153
- </ li >
154
- </ ul >
155
- </ div >
156
- {% endfor %}
157
- {% endif %}
158
- </ ul >
159
- </ div >
76
+ </ div >
77
+ </ label >
78
+ </ span >
79
+ </ li >
80
+ </ ul >
81
+ </ div >
160
82
{% endfor %}
161
- {% endif %}
162
83
</ ul >
163
84
</ div >
164
85
{% endfor %}
165
86
</ ul >
166
- {% endif %}
167
- {% endfor %}
168
-
87
+ {% endfor %}
88
+
169
89
< ul class ="sectlevel1 ">
170
- < input class ="toc-toggle-box " type ="checkbox " id ="datasheets "
171
- />
172
90
< li >
173
91
< span >
174
- < label class ="toc-toggle " for =" {{ subdir.path }} " >
92
+ < label class ="toc-toggle ">
175
93
< div class ="toc-toggle-container ">
176
94
< a class ="level1 ">
177
95
< a title ="PDF documentation " class ="toc-item no-dropdown " href ="https://datasheets.raspberrypi.com/ " target ="_blank ">
@@ -185,11 +103,9 @@ <h1 id="docs-header-title">
185
103
</ ul >
186
104
187
105
< ul class ="sectlevel1 ">
188
- < input class ="toc-toggle-box " type ="checkbox " id ="pip "
189
- />
190
106
< li >
191
107
< span >
192
- < label class ="toc-toggle " for =" {{ subdir.path }} " >
108
+ < label class ="toc-toggle ">
193
109
< div class ="toc-toggle-container ">
194
110
< a class ="level1 ">
195
111
< a title ="Raspberry Pi compliance documents " class ="toc-item no-dropdown " href ="https://pip.raspberrypi.com/ " target ="_blank ">
@@ -203,11 +119,9 @@ <h1 id="docs-header-title">
203
119
</ ul >
204
120
205
121
< ul class ="sectlevel1 ">
206
- < input class ="toc-toggle-box " type ="checkbox " id ="tutorials "
207
- />
208
122
< li >
209
123
< span >
210
- < label class ="toc-toggle " for =" {{ subdir.path }} " >
124
+ < label class ="toc-toggle ">
211
125
< div class ="toc-toggle-container ">
212
126
< a class ="level1 ">
213
127
< a title ="Hands-on hardware and software tutorials " class ="toc-item no-dropdown " href ="https://www.raspberrypi.com/tutorials/ " target ="_blank ">
@@ -221,11 +135,9 @@ <h1 id="docs-header-title">
221
135
</ ul >
222
136
223
137
< ul class ="sectlevel1 ">
224
- < input class ="toc-toggle-box " type ="checkbox " id ="forums "
225
- />
226
138
< li >
227
139
< span >
228
- < label class ="toc-toggle " for =" {{ subdir.path }} " >
140
+ < label class ="toc-toggle ">
229
141
< div class ="toc-toggle-container ">
230
142
< a class ="level1 ">
231
143
< a title ="User and product support forums " class ="toc-item no-dropdown " href ="https://forums.raspberrypi.com " target ="_blank ">
0 commit comments