aboutsummaryrefslogtreecommitdiff
path: root/templates/partials/doc/global_toc.html
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-01-31 12:44:47 +0100
committerAlex Auvolat <alex@adnab.me>2022-01-31 12:44:47 +0100
commit242fcc297903c2e47c35946da5f99f97d091de0a (patch)
tree97ae176f98015a2006986ba9d69cc930bab6286f /templates/partials/doc/global_toc.html
parent143c9403e6c94585de1ab65e631798994d01eb41 (diff)
downloadgaragehq.deuxfleurs.fr-242fcc297903c2e47c35946da5f99f97d091de0a.tar.gz
garagehq.deuxfleurs.fr-242fcc297903c2e47c35946da5f99f97d091de0a.zip
Add sections as documentation pages
Diffstat (limited to 'templates/partials/doc/global_toc.html')
-rw-r--r--templates/partials/doc/global_toc.html11
1 files changed, 7 insertions, 4 deletions
diff --git a/templates/partials/doc/global_toc.html b/templates/partials/doc/global_toc.html
index f739f49..277739c 100644
--- a/templates/partials/doc/global_toc.html
+++ b/templates/partials/doc/global_toc.html
@@ -1,3 +1,4 @@
+ {% set section = get_section(path="documentation/_index.md") %}
<aside id="global_toc" class="relative col-span-1 h-full bg-gray-100 shadow-inner border-r border-t border-gray-200">
{% if section.subsections %}
<ul id="main-toc-menu" class="space-y-2 px-6 py-3 list-none">
@@ -6,8 +7,8 @@
{% for page in section.pages %}
<a
href="{{ page.permalink | safe }}"
- class="docPage block pl-2 py-1 border-l rounded-r border-garage-orange hover:bg-garage-orange hover:bg-opacity-20
- {% if current_path == page.path %} activePage border-l-4 text-garage-orange font-semibold border-opacity-100 border-garage-orange {% endif %}">
+ class="bg-white border border-garage-orange block p-1 rounded block font-semibold hover:bg-garage-orange hover:bg-opacity-20
+ {% if current_path == page.path %} activePage text-garage-orange border-opacity-100 border-garage-orange {% endif %}">
{{ page.title }}
</a>
{% endfor %}
@@ -18,7 +19,9 @@
<li class="relative">
<a
href="{{ h1.permalink | safe }}"
- class="bg-white border border-garage-orange block p-1 rounded-r rounded-tl font-semibold text-gray-800">
+ class="bg-white border border-garage-orange block p-1 rounded-r rounded-tl font-semibold
+ {% if current_path == h1.path %} activePage text-garage-orange font-semibold border-opacity-100 border-garage-orange {% else %}text-gray-800{% endif %}
+ ">
{{ h1.title }}
</a>
{% if h1.pages %}
@@ -43,4 +46,4 @@
{% endfor %}
</ul>
{% endif %}
-</aside> \ No newline at end of file
+</aside>