aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-12-08 21:41:04 -0500
committerAndrew Manning <tamanning@zoho.com>2016-12-08 21:41:04 -0500
commitcafa5217ed3824c142b44b8b8e5bcb484ffea6fe (patch)
tree1a4a57b201c189dbac3bf5fd25c148015fe7e871 /view
parentbc16a1bcc4a5f58df2f8994cd53661c8f53acab5 (diff)
downloadvolse-hubzilla-cafa5217ed3824c142b44b8b8e5bcb484ffea6fe.tar.gz
volse-hubzilla-cafa5217ed3824c142b44b8b8e5bcb484ffea6fe.tar.bz2
volse-hubzilla-cafa5217ed3824c142b44b8b8e5bcb484ffea6fe.zip
Condense sticky nav TOC to h1 only. Add deep TOC to top of each page. Adjust developer guide headings.
Diffstat (limited to 'view')
-rw-r--r--view/tpl/help.tpl14
1 files changed, 14 insertions, 0 deletions
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