File tree Expand file tree Collapse file tree 4 files changed +6
-35
lines changed Expand file tree Collapse file tree 4 files changed +6
-35
lines changed Original file line number Diff line number Diff line change @@ -198,33 +198,5 @@ <h3 class="modal-title fs-5" id="search_modal_label">
198
198
{% for path in config.extra_javascript %}
199
199
< script src ="{{ path|url }} " defer > </ script >
200
200
{% endfor %}
201
-
202
- < script >
203
- var shiftWindow = function ( ) {
204
- scrollBy ( 0 , - 50 ) ;
205
- } ;
206
-
207
- if ( location . hash ) shiftWindow ( ) ;
208
- window . addEventListener ( "hashchange" , shiftWindow ) ;
209
-
210
- $ ( ".dropdown-menu" ) . on ( "click touchstart" , function ( event ) {
211
- event . stopPropagation ( ) ;
212
- } ) ;
213
-
214
- // Dynamically force sidenav/dropdown to no higher than browser window
215
- $ ( ".side-nav, .dropdown-menu" ) . css (
216
- "max-height" ,
217
- window . innerHeight - 130
218
- ) ;
219
-
220
- $ ( function ( ) {
221
- $ ( window ) . resize ( function ( ) {
222
- $ ( ".side-nav, .dropdown-menu" ) . css (
223
- "max-height" ,
224
- window . innerHeight - 130
225
- ) ;
226
- } ) ;
227
- } ) ;
228
- </ script >
229
201
</ body >
230
202
</ html >
Original file line number Diff line number Diff line change @@ -13,7 +13,4 @@ import "../../node_modules/bootstrap/js/dist/tooltip";
13
13
14
14
import "../scss/styles.scss" ;
15
15
16
- const codeBlocks = document . querySelectorAll ( "pre code" ) ;
17
- codeBlocks . forEach ( ( block ) => {
18
- block . parentElement . classList . add ( [ "prettyprint" , "well" ] ) ;
19
- } ) ;
16
+ setupPrettify ( ) ;
Original file line number Diff line number Diff line change @@ -105,14 +105,15 @@ pre code {
105
105
}
106
106
107
107
.body-content {
108
- padding-top : 120 px ;
108
+ padding-top : 70 px ;
109
109
padding-bottom : 70px ;
110
110
}
111
111
112
112
.badges {
113
113
display : flex ;
114
114
align-items : center ;
115
115
justify-content : end ;
116
+ gap : 8px ;
116
117
}
117
118
118
119
.toclink {
@@ -153,7 +154,7 @@ pre code {
153
154
}
154
155
155
156
.prettyprint {
156
- padding : 8 px ;
157
+ padding : 20 px ;
157
158
background-color : #f7f7f9 ;
158
159
border : 1px solid #e1e1e8 ;
159
160
}
Original file line number Diff line number Diff line change 14
14
markdown_extensions :
15
15
- admonition
16
16
- toc :
17
- anchorlink : True
17
+ # anchorlink: True
18
+ permalink : True
18
19
19
20
nav :
20
21
- Home : ' index.md'
You can’t perform that action at this time.
0 commit comments