From 70000010feef72c305876119524d15160b00a0ba Mon Sep 17 00:00:00 2001 From: Deepak Khatri <lorforlinux@beagleboard.org> Date: Sat, 3 Sep 2022 14:50:45 +0530 Subject: [PATCH] Upde theme layout --- _static/css/custom.css | 12 +++++++++++- _templates/layout.html | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 _templates/layout.html diff --git a/_static/css/custom.css b/_static/css/custom.css index 19fa99ff..20417d54 100644 --- a/_static/css/custom.css +++ b/_static/css/custom.css @@ -18,9 +18,18 @@ } .wy-nav-content { - max-width: 100%; + max-width: 100%; } +.wy-side-scroll { + overflow-y: hidden; +} + +.wy-menu.wy-menu-vertical { + overflow-y: auto; + overflow-x: hidden; + max-height: calc(100% - 247px); +} .wy-side-nav-search { background-color: #25282b; @@ -33,6 +42,7 @@ } .wy-nav-side { + padding-bottom: 0px; background-color: #25282b; background-color: #25282b; } diff --git a/_templates/layout.html b/_templates/layout.html new file mode 100644 index 00000000..cd42441b --- /dev/null +++ b/_templates/layout.html @@ -0,0 +1,32 @@ +{% extends "!layout.html" %} +{% block document %} + {% if pages_slug != "latest" %} + <div class="wy-alert wy-alert-danger"> + The <a href="{{pages_url}}/latest">latest development version</a> + of this page may be more current than this released {{ version }} version. + </div> + {% else %} + <div class="wy-alert wy-alert-danger"> + This is the latest (main) BeagleBoard documentation. + If you are looking for the previous releases, use the + drop-down menu on the left and select the desired version. + </div> + {% endif %} + {{ super() }} +{% endblock %} +{% block menu %} + {% include "versions.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 %} -- GitLab