{%- block container %}
{%- block header %}{%- include "util/navbar.html" %}{% endblock %}
{% block subtitle %}
{%- include "util/subtitle.html" %}
{% endblock %}
{# close sidebar when clicked out of it #}
{%- block sidebar %}
{# sidebar navlinks displayed only on mobile #}
{% block side_links %}
{%- include "util/navlinks.html" %}
{%- include "util/extlinks.html" %}
{% endblock %}
{%- if sidebars != None %}
{%- for sidebartemplate in sidebars %}
{%- include sidebartemplate %}
{%- endfor %}
{%- endif %}
{%- if release %}
{%- include "version-switcher.html" %}
{%- endif %}
{%- endblock %}
{%- block document %}
{% block body_header %}
{%- include "util/bodyheader.html" %}
{% endblock body_header %}
{% set is_api_page = pagename.startswith('python/api_python/') or pagename.startswith('cpp/api_cpp/') %}
{% set show_right_sidebar = not is_api_page %}
{% block body %}{% endblock %}
{%- if prev or next %}