{% extends "!layout.html" %}

{% block document %}
    <div class="admonition site-banner" style="background: #E2F7F3; border-left: none;">
        <p class="admonition-title" style="background: #0CAE8E;">Nextflow documentation is migrating</p>
        <p>Nextflow documentation is being migrated to <a href="https://docs.seqera.io/nextflow/">docs.seqera.io/nextflow</a>. This site will remain available throughout the migration.</p>
    </div>
    {{ super() }}
{% endblock %}

{% block sidebartitle %}
    {{ super() }}
    {%- set version_selected = "stable" -%}
    {%- if "edge" in release %}{%- set version_selected = "edge" -%}{%- endif %}
    {%- if "dev" in release %}{%- set version_selected = "dev" -%}{%- endif %}
    <div class="sidebar_version">
        <span class="version">Version {{ release }} {{ release_checked_out }}</span>
        <select onchange="window.location = this.value;">
            <option value="/docs/stable/index.html" {% if version_selected == 'stable' %}selected{% endif %}>Stable</option>
            <option value="/docs/edge/index.html" {% if version_selected == 'edge' %}selected{% endif %}>Edge</option>
            <option value="/docs/latest/index.html" {% if version_selected == 'dev' %}selected{% endif %}>Latest</option>
        </select>
        </select>
    </div>
{% endblock %}

{% block navigation %}
    {{ super() }}
    <div class="nav-footer-logo">
        <a href="https://seqera.io/" target="_blank" title="Developed by Seqera Labs">
            Nextflow is developed by:<br>
            <img src="{{ pathto('_static/seqera-logo.svg', 1) }}" alt="Seqera Labs">
        </a>
    </div>
{% endblock %}

{% block extrahead %}
    {{ super() }}
    <!-- Google Tag Manager -->
    <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-TNCXSWG');</script>
    <!-- End Google Tag Manager -->
{% endblock %}

{% block footer %}
    {{ super() }}
    <!-- Google Tag Manager (noscript) -->
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TNCXSWG"
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <!-- End Google Tag Manager (noscript) -->
{% endblock %}
