{% extends "sphinx_rtd_theme/layout.html" %} {# Most of this block is copied from sphinx_rtd_theme version 0.5.0-1-gaa71fd6. Tweaks were necessary for our theme to provide a default logo, since Sphinx's html_logo configuration option (template variable "logo" below) can't be set by the theme *and also* can't refer to a theme-provided file when set by the doc project's conf.py. `theme_logo_only` is set via a project's conf.py -> `html_theme_options` -> `logo_only` value (default: false). In the context of Nextstrain we use this to determine whether or not to display the subproject name, version We also adjust the rendering of the project name to remove the home icon. #} {% block sidebartitle %} {% set logo = logo if logo else 'nextstrain-logo.svg' if theme_logo else '' %} {% if logo %} {% endif %} {% if not theme_logo_only %}
{{ project }} {# NOTE the version only works on RTD (not locally) as the variables `nav_version` and `current_version` don't seem to be set on a local build. #} {%- set nav_version = version %} {% if READTHEDOCS and current_version %} {%- set nav_version = current_version %} {% endif %} {% if nav_version %} version: {{ nav_version }} {% endif %}
(Click here to return to the main nextstrain docs)
{% endif %} {% include "searchbox.html" %} {% endblock %}