aboutsummaryrefslogtreecommitdiff
path: root/doc-tool/resources/_layouts/sidebar.html
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2017-01-24 17:35:53 +0100
committerFelix Mulder <felix.mulder@gmail.com>2017-01-31 14:35:42 +0100
commit866e364dde76aa5df42548bf72d2f5c4d200535b (patch)
treea0fe7c27c533e293255471aa6f34b272ef61e9c1 /doc-tool/resources/_layouts/sidebar.html
parente59241a2852eab53bdc0e22ea5b2dd394b231913 (diff)
downloaddotty-866e364dde76aa5df42548bf72d2f5c4d200535b.tar.gz
dotty-866e364dde76aa5df42548bf72d2f5c4d200535b.tar.bz2
dotty-866e364dde76aa5df42548bf72d2f5c4d200535b.zip
Document dottydoc capabilities, add anchored headers
Diffstat (limited to 'doc-tool/resources/_layouts/sidebar.html')
-rw-r--r--doc-tool/resources/_layouts/sidebar.html49
1 files changed, 49 insertions, 0 deletions
diff --git a/doc-tool/resources/_layouts/sidebar.html b/doc-tool/resources/_layouts/sidebar.html
new file mode 100644
index 000000000..b3947c884
--- /dev/null
+++ b/doc-tool/resources/_layouts/sidebar.html
@@ -0,0 +1,49 @@
+---
+layout: main
+---
+
+<div id="content-wrapper">
+ <div class="index-wrapper">
+ {% include "toc" %}
+ <ul class="index-entities">
+ {% if docs.size > 0 %}
+ <li class="index-title">
+ <span>API</span>
+ </li>
+ {% endif %}
+ {% for pkg in docs %}
+ <li class="index-entity entity-package">
+ <a class="entity-name" href="{{ site.baseurl }}/api/{{ pkg.path | join: "/" }}/index.html">{{ pkg.name }}</a>
+ </li>
+ {% for member in pkg.children %}
+ {% if member.kind == "object" and member.hasCompanion %}
+ {% elsif member.kind != "package" %}
+ <li class="index-entity {% if member.hasCompanion %} with-companion {% endif %}">
+ <div class="entity-kinds">
+ {% if member.hasCompanion %}
+ <a class="letter-anchor object" href="{{ site.baseurl }}/api/{{ member.companionPath | join: "/" }}.html">O</a>
+ {% endif %}
+ <a class="letter-anchor {{ member.kind }}" href="{{ site.baseurl }}/api/{{ member.path | join: "/" }}.html">{{ member.kind | first | capitalize }}</a>
+ </div>
+ <a class="entity-name" href="{{ site.baseurl }}/api/{{ member.path | join: "/" }}.html">{{ member.name }}</a>
+ </li>
+ {% endif %}
+ {% endfor %}
+ {% endfor %}
+ </ul>
+ </div>
+ <div id="content-body">
+ <div id="menu-toggle" onclick="toggleMenu()">
+ <i class="fa fa-bars" aria-hidden="true"></i>
+ </div>
+ {{ content }}
+ </div>
+</div>
+
+
+<script>
+function toggleMenu() {
+ var wrapper = document.getElementById("content-wrapper");
+ wrapper.classList.toggle("toggled");
+}
+</script>