Remove navigation elements on embedded help builds (like htmlhelp)

This commit is contained in:
baldurk
2026-05-15 12:43:35 +01:00
parent 9897b96196
commit bccce17b97
@@ -110,6 +110,7 @@
{%- block extrabody %} {% endblock %}
<div class="wy-grid-for-nav">
{#- SIDE NAV, TOGGLES ON MOBILE #}
{%- if not embedded %}
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" {% if theme_style_nav_header_background %} style="background: {{theme_style_nav_header_background}}" {% endif %}>
@@ -159,17 +160,20 @@
{%- endblock %}
</div>
</nav>
{%- endif %}
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
{#- MOBILE NAV, TRIGGLES SIDE NAV ON TOGGLE #}
{#- Translators: This is an ARIA section label for the navigation menu that is visible when viewing the page on mobile devices -#}
{% if not embedded %}
<nav class="wy-nav-top" aria-label="{{ _('Mobile navigation menu') }}" {% if theme_style_nav_header_background %} style="background: {{theme_style_nav_header_background}}" {% endif %}>
{%- block mobile_nav %}
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="{{ pathto(master_doc) }}">{{ project }}</a>
{%- endblock %}
</nav>
{% endif %}
<div class="wy-nav-content">
{%- block content %}
@@ -178,7 +182,10 @@
{%- else %}
<div class="rst-content">
{%- endif %}
{# Don't show breadcrumbs on embedded #}
{% if not embedded %}
{% include "breadcrumbs.html" %}
{% endif %}
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
{%- block document %}
<div itemprop="articleBody">