aboutsummaryrefslogtreecommitdiff
path: root/templates/documentation.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/documentation.html
parent143c9403e6c94585de1ab65e631798994d01eb41 (diff)
downloadgaragehq.deuxfleurs.fr-242fcc297903c2e47c35946da5f99f97d091de0a.tar.gz
garagehq.deuxfleurs.fr-242fcc297903c2e47c35946da5f99f97d091de0a.zip
Add sections as documentation pages
Diffstat (limited to 'templates/documentation.html')
-rw-r--r--templates/documentation.html11
1 files changed, 8 insertions, 3 deletions
diff --git a/templates/documentation.html b/templates/documentation.html
index 55a5c61..154df5f 100644
--- a/templates/documentation.html
+++ b/templates/documentation.html
@@ -1,11 +1,13 @@
{% extends 'base.html' %}
{% block title %}
- {{ config.title }} | {{ page.title }}
+ {{ config.title }} | {% if page %}{{ page.title }}{% else %}{{ section.title }}{% endif %}
{% endblock %}
{% block content %}
- {% set section = get_section(path="documentation/_index.md") %}
+ {% if not page %}
+ {% set page = section %}
+ {% endif %}
<section id="documentation-section" class="section overflow-x-hidden">
<div class="grid grid-cols-1 xl:grid-cols-5">
{% include "partials/doc/global_toc.html" %}
@@ -45,7 +47,10 @@
{% endblock %}
{% block custom_js %}
+ {% if not page %}
+ {% set page = section %}
+ {% endif %}
{% if page.toc %}
{% include "partials/doc/toc_script.html" %}
{% endif %}
-{% endblock %} \ No newline at end of file
+{% endblock %}