{# 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 }} | Scylla Docs {%- endblock %} {%- block css %} {{- css() }} {%- endblock %} {%- block scripts %} {{- script() }} {%- endblock %}
{%- if pagename == master_doc and not theme_show_sidebar_index %}
{{ body }}
{%- else %}
{% if versions and current_version and latest_version and current_version != latest_version %}

{% if current_version.is_released %} You're reading an old version of this documentation. If you want up-to-date information, please have a look at {{latest_version.name}}. {% else %} You're reading the documentation for a development version. For the latest released version, please have a look at {% if latest_version.name == 'master' %} latest {% else %} {{latest_version.name | replace('-scylla', '')}} {% endif %}. {% endif %}

{% endif %} {{ body }}
{% if versions and (versions.tags or versions.branches|count>1) %} {% include 'versioning.html' %} {% endif %}
{%- endif %}