forked from Codeception/codeception.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoc.html
More file actions
52 lines (43 loc) · 1.12 KB
/
Copy pathdoc.html
File metadata and controls
52 lines (43 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
layout: bootstrap
---
<div class="row">
<div class="col-sm-3 col-lg-3">
<div id="searchable">
<input type="search" class="search" placeholder="live search...">
<br>
<!-- toc.js generated nav... -->
<div id="toc" class="nav"></div>
</div> <!-- /#searchable -->
<script type="text/javascript">
$(document).ready(function () {
$('#toc').toc({
'selectors': 'h2,h3,h4',
'prefix': 'toc',
'container': '#page',
//custom function for anchor name
'anchorName': function(i, heading, prefix) {
return $(heading).text().replace(/\s/g, '-').replace(/[^\w-]/g, '');
},
});
// List.js
$('#toc > ul').addClass('list');
$('#toc ul.list li a').addClass('searchitem');
var options = {
valueNames: [ 'searchitem' ]
};
var userList = new List('searchable', options);
// end List.js
}); // docrdy
</script>
</div>
<div class="col-sm-9 col-lg-9">
<div class="content page">
<div>
<div id="page">
{{ content }}
</div>
</div>
</div>
</div>
</div>