aboutsummaryrefslogtreecommitdiff
path: root/gocryptfs-readthedocs/nav.html
diff options
context:
space:
mode:
authorAndy Taylor2018-01-29 17:32:28 +1100
committerAndy Taylor2018-01-29 17:32:28 +1100
commitc2eeba892f634fb1ba7feec993c0df3dd36642af (patch)
tree07c15cde96207c24e033e45e56c72a128c4b9314 /gocryptfs-readthedocs/nav.html
parent246c2639be0fb9fb027b1878479d86cd90b7731a (diff)
Adding copy of readthedocs theme from mkdocs 0.17.2 source
Diffstat (limited to 'gocryptfs-readthedocs/nav.html')
-rw-r--r--gocryptfs-readthedocs/nav.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/gocryptfs-readthedocs/nav.html b/gocryptfs-readthedocs/nav.html
new file mode 100644
index 0000000..6b6d7d8
--- /dev/null
+++ b/gocryptfs-readthedocs/nav.html
@@ -0,0 +1,22 @@
+{%- if nav_item.url %}
+ <a class="{% if nav_item.active%}current{%endif%}" href="{{ nav_item.url }}">{{ nav_item.title }}</a>
+{%- else %}
+ <span class="caption-text">{{ nav_item.title }}</span>
+{%- endif %}
+
+{%- if nav_item == page or nav_item.children %}
+ <ul class="subnav">
+ {%- if nav_item == page %}
+ {% include 'toc.html' %}
+ {%- endif %}
+ {%- if nav_item.children %}
+ {%- set navlevel = navlevel + 1%}
+ {%- for nav_item in nav_item.children %}
+ <li class="{% if navlevel > 2 %}toctree-l{{ navlevel }}{% endif %}{% if nav_item.active%} current{%endif%}">
+ {% include 'nav.html' %}
+ </li>
+ {%- endfor %}
+ {%- set navlevel = navlevel - 1%}
+ {%- endif %}
+ </ul>
+{%- endif %}