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
45 lines (44 loc) · 1.25 KB
/
Copy pathdoc.html
File metadata and controls
45 lines (44 loc) · 1.25 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
---
layout: bootstrap
---
<div class="container">
<div class="row">
<div class="col-sm-8">
<div class="content page">
<div id="page">
{{ content }}
</div> <!-- /#page -->
</div> <!-- /.content page -->
</div> <!-- /.col -->
<div class="col-sm-4">
<div id="searchable">
<div>
<input type="search" class="search" placeholder="live search...">
</div>
<!-- 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> <!-- /.col -->
</div> <!-- /.row -->
</div> <!-- /.container -->