File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 34
34
border : 1px solid black;
35
35
border-collapse : collapse;
36
36
margin-bottom : 2ex ;
37
- white-space : nowrap;
38
37
}
39
38
40
39
# table-of-contents {
81
80
margin-top : 1.5em ;
82
81
}
83
82
84
- toc .sideitem {
83
+ # toc .sideitem {
85
84
padding : 0.5em 0.5em ;
85
+ margin-bottom : 0 ;
86
86
}
87
87
88
88
# toc h2 {
89
89
margin-bottom : 0.5em ;
90
90
padding-bottom : 0.0em ;
91
91
}
92
92
93
+ # toc # table-of-contents {
94
+ max-height : 66vh ;
95
+ overflow-y : auto;
96
+ }
97
+
93
98
/*]]>*/
94
99
</ style >
95
100
</ head >
158
163
if ( parts != null && parts . groups . path . endsWith ( '.md' ) ) {
159
164
tableOfContentsAside = `
160
165
<div id="toc" class="col-md-6">
161
- <aside
166
+ <aside>
162
167
<ul class="ul-left-nav">
163
168
<div class="sideitem">
164
169
<h2>Table of Contents</h2>
@@ -285,6 +290,8 @@ <h2>Table of Contents</h2>
285
290
const siteURL = toSiteURL ( logicalHref ) ;
286
291
if ( siteURL != null ) {
287
292
a . href = siteURL ;
293
+ } else if ( ! href . startsWith ( 'http' ) ) {
294
+ a . href = new URL ( `https://github.com/${ org } /${ repo } /blob/${ branch } /${ path } /../${ href } ` ) ;
288
295
}
289
296
continue ;
290
297
}
You can’t perform that action at this time.
0 commit comments