Skip to content

Commit 79b3487

Browse files
committed
updated
1 parent 030c3b5 commit 79b3487

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

_layouts/doc.html

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,23 @@
1010
<div id="page">
1111
{{ content }}
1212
</div>
13-
<p>
14-
&nbsp;
15-
</p>
16-
</div>
13+
</div>
1714

1815
</div>
1916
</div>
20-
</div>
2117
<div class="col-sm-4 col-lg-4">
2218

2319
<div id="toc" class="nav"></div>
2420

2521
<script type="text/javascript">
2622
$(document).ready(function () {
2723
$('#toc').toc({
28-
selectors: 'h2,h3,h4',
29-
container: '#page',
30-
anchorName: function (i, heading, prefix) {
31-
return $(heading).text().replace(/\s/g, '-').replace(/[^\w-]/g, '');
32-
},
24+
'selectors': 'h2,h3,h4',
25+
'prefix': 'toc',
26+
'container': '#page',
27+
'anchorName': function(i, heading, prefix) { //custom function for anchor name
28+
return $(heading).text().replace(/\s/g, '-').replace(/[^\w-]/g, '');
29+
},
3330
});
3431
});
3532
</script>
@@ -49,4 +46,4 @@
4946

5047

5148
</div>
52-
</div>
49+
</div>

css/syntax.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
.highlight .mo { color: #40a070 } /* Literal.Number.Oct */
4646
.highlight .sb { color: #4070a0 } /* Literal.String.Backtick */
4747
.highlight .sc { color: #4070a0 } /* Literal.String.Char */
48-
.highlight .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */
49-
.highlight .s2 { color: #4070a0 } /* Literal.String.Double */
50-
.highlight .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */
51-
.highlight .sh { color: #4070a0 } /* Literal.String.Heredoc */
48+
.highlight .sd { color: #87D139; font-style: italic } /* Literal.String.Doc */
49+
.highlight .s2 { color: #87D139 } /* Literal.String.Double */
50+
.highlight .se { color: #87D139; font-weight: bold } /* Literal.String.Escape */
51+
.highlight .sh { color: #87D139 } /* Literal.String.Heredoc */
5252
.highlight .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */
5353
.highlight .sx { color: #c65d09 } /* Literal.String.Other */
5454
.highlight .sr { color: #235388 } /* Literal.String.Regex */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy