From 8d559a99641ed8a39a6b3f550447a9b29bdce657 Mon Sep 17 00:00:00 2001 From: Deepak Khatri <lorforlinux@beagleboard.org> Date: Thu, 1 Sep 2022 02:24:35 +0530 Subject: [PATCH] update layout #2 --- _templates/layout.html | 32 +++++++++++++++++--------------- conf.py | 1 + 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/_templates/layout.html b/_templates/layout.html index 998cb582..4c52909e 100644 --- a/_templates/layout.html +++ b/_templates/layout.html @@ -14,19 +14,21 @@ {% endif %} {{ super() }} {% endblock %} -{% block menu %} - {% include "bversions.html" %} - {{ super() }} - {% if reference_links %} - <div class="toctree-wrapper compound"> - <p class="caption"><span class="caption-text">Reference</span></p> - <ul> - {% for title, url in reference_links.items() %} - <li class="toctree-l1"> - <a class="reference internal" href="{{ url }}">{{ title }}</a> - </li> - {% endfor %} - </ul> - </div> - {% endif %} +{% block rootrellink %} + {% block menu %} + {% include "bversions.html" %} + {{ super() }} + {% if reference_links %} + <div class="toctree-wrapper compound"> + <p class="caption"><span class="caption-text">Reference</span></p> + <ul> + {% for title, url in reference_links.items() %} + <li class="toctree-l1"> + <a class="reference internal" href="{{ url }}">{{ title }}</a> + </li> + {% endfor %} + </ul> + </div> + {% endif %} + {% endblock %} {% endblock %} diff --git a/conf.py b/conf.py index 0ac4de35..76f4777f 100644 --- a/conf.py +++ b/conf.py @@ -76,6 +76,7 @@ with open(BBDOCS_BASE / "VERSION") as f: else: major, minor, patch, extra = m.groups(1) version = ".".join((major, minor, patch)) + release_version = ".".join((major, minor)) if extra: version += "-" + extra -- GitLab