diff options
Diffstat (limited to 'view')
-rw-r--r-- | view/theme/redbasic/css/style.css | 5 | ||||
-rw-r--r-- | view/tpl/help.tpl | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 2f3da7542..ae4853ec6 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -109,6 +109,11 @@ input, optgroup, select, textarea { resize: vertical; } +#help-content pre code { + overflow-x: auto; + white-space: pre; +} + pre code { border: none; } diff --git a/view/tpl/help.tpl b/view/tpl/help.tpl index 96d52e0e9..2faaa3853 100644 --- a/view/tpl/help.tpl +++ b/view/tpl/help.tpl @@ -3,6 +3,20 @@ <h2>{{$title}}</h2> </div> <div class="section-content-wrapper" id="doco-content"> + <h1>Contents</h1> + <ul id="doco-top-toc"></ul> + <hr> {{$content}} </div> </div> + +<script> + + // Generate the table of contents in the side nav menu (see view/tpl/help.tpl) + $(document).ready(function () { + + $('#doco-top-toc').toc({content: "#doco-content", headings: "h1,h2,h3,h4"}); + + }); + +</script>
\ No newline at end of file |