{# layout.html ~~~~~~~~~~~~~~~~~ Layout template for scylla docs. #} {%- macro script() %} {%- for js in script_files %} {{ js_tag(js) }} {%- endfor %} {%- endmacro %} {%- macro css() %} {%- for css in css_files %} {%- if css|attr("filename") %} {{ css_tag(css) }} {%- else %} {%- endif %} {%- endfor %} {%- endmacro %} {%- block title %} {{ title|striptags|e }} | Scylla Docs {%- endblock %} {%- block css %} {{- css() }} {%- endblock %} {%- block scripts %} {{- script() }} {%- endblock %} {% if not theme_hide_banner or theme_hide_banner|lower == 'false' %} {% include 'banner.html' %} {% endif %}
{%- if pagename == master_doc and (not theme_show_sidebar_index or theme_show_sidebar_index|lower == 'false') %}
{{ body }}
{%- else %}
{% if versions and current_version and latest_version and current_version != latest_version %}

Caution

{% if current_version.name == theme_default_branch %} You are reading an unstable version of this documentation. {% else %} You are not reading the most current version of the documentation. {% endif %} If you want up-to-date information, please have a look at {% if latest_version in versions.branches %} {{ latest_version.name | replace(theme_branch_substring_removed, '') }} {% else %} {{ latest_version.name | replace(theme_tag_substring_removed, '') }} {% endif %} .
{% endif %} {{ body }}
{% if versions %} {% include 'versioning.html' %} {% endif %}
{%- endif %}