File tree 3 files changed +5
-18
lines changed
pep_sphinx_extensions/theme
3 files changed +5
-18
lines changed Original file line number Diff line number Diff line change 1
- /* Sphinx JavaScript utilities for all documentation.
2
- * Adapted from https://github.com/sphinx-doc/sphinx/blob/master/sphinx/themes/basic/static/doctools.js
3
- * Removed libraries (jQuery/underscores) & stripped down
4
- */
1
+ /* JavaScript utilities for all documentation. */
5
2
6
3
// Footnote fixer
7
- document . querySelectorAll ( "span.brackets" ) . forEach ( el => {
8
- if ( ! el . children . length ) el . innerText = "[" + el . innerText + "]"
9
- } )
4
+ document . querySelectorAll ( "span.brackets" ) . forEach ( el => el . innerHTML = "[" + el . innerHTML + "]" )
5
+ document . querySelectorAll ( "a.brackets" ) . forEach ( el => el . innerHTML = "[" + el . innerHTML + "]" )
Original file line number Diff line number Diff line change @@ -292,16 +292,6 @@ dl.footnote > dd {
292
292
border-left : 2px solid # fff ;
293
293
}
294
294
295
- /* Link formatting */
296
- a .brackets : before ,
297
- span .brackets > a : before {
298
- content : "[" ;
299
- }
300
- a .brackets : after ,
301
- span .brackets > a : after {
302
- content : "]" ;
303
- }
304
-
305
295
/* Sidebar formatting */
306
296
aside .left-sidebar {
307
297
overflow-y : scroll;
Original file line number Diff line number Diff line change 9
9
< link rel ="stylesheet " href ="{{ pathto('_static/style.css', resource=True) }} " type ="text/css " />
10
10
< link rel ="stylesheet " href ="{{ pathto('_static/mq.css', resource=True) }} " type ="text/css " />
11
11
< link rel ="stylesheet " href ="{{ pathto('_static/pygments.css', resource=True) }} " type ="text/css " />
12
- < script src ="{{ pathto('_static/doctools.js', resource=True) }} "> </ script >
13
12
{%- if favicon %}< link rel ="shortcut icon " href ="{{ pathto('_static/' + favicon, resource=True)|e }} "/> {%- endif %}
14
13
</ head >
15
14
< body class ="python pages pep-page ">
41
40
< div style ="height: 553.5px; background-color: #e6e8ea; border-top: 1px solid #d8dbde; "> </ div >
42
41
< div style ="height: 103.05px; background-color: #2b5b84; "> </ div >
43
42
</ footer >
43
+
44
+ < script src ="{{ pathto('_static/doctools.js', resource=True) }} "> </ script >
44
45
</ body >
45
46
</ html >
You can’t perform that action at this time.
0 commit comments