{% extends "!layout.html" %}
{% set css_files = css_files + ["_static/readonlydocs.css"] %}
{% set script_files = script_files + ["_static/readonlydocs.js"] %}

{% block sidebartitle %}
    <div id="ro-logo-container" class="page-scroll">
        <a class="logo" href="{{ pathto(master_doc) }}">
            <img src="{{ pathto('_static/readonly-mark.svg', 1) }}">
            <span>ReadOnlyMods</span>
            <i class="fa fa-fw fa-chevron-down"></i>
        </a>
        <div id="ro-logo-menu">
            <ul id="ro-logo-dropdown">
                <li><a href="https://www.readonlymods.ml"><i class="fa-fw fa fa-home"></i>Homepage</a></li>
                <li><a href="https://forums.readonlymods.ml"><i class="fa-fw fa fa-comments"></i>Forums</a></li>
                <li><a href="https://github.com/ReadOnly-Mods"><i class="fa-fw fa fa-code"></i>Code</a></li>
                <li class="active"><a href="https://readonlymods.ml"><i class="fa-fw fa fa-book"></i>Docs</a></li>
                <li><a href="https://jd.readonlymods.ml"><i class="fa-fw fa fa-graduation-cap"></i>Javadocs</a></li>
                <li><a href="https://forums.readonlymods.ml/c/plugins/plugin-releases"><i class="fa-fw fa fa-plug"></i>Plugins</a></li>
                <li><a href="https://ore.readonlymods.ml"><img src="{{ pathto('_static/ore.svg', 1) }}" alt="" class="fa-fw fa ore-logo">Ore <sup>Beta</sup></a></li>
                <li><a href="https://www.readonlymods.ml/downloads"><i class="fa-fw fa fa-download"></i>Downloads</a></li>
                <li><a href="https://www.readonlymods.ml/chat"><i class="fa-fw fa fa-comment"></i>Chat</a></li>
            </ul>
        </div>
    </div>

    {% include "searchbox.html" %}
{% endblock %}

{% block extrahead %}
    {% if language == 'translate' %}
        {# Include Crowdin In-Context Localization JS app if this is the translation build #}
        <script>
            // Set Crowdin project context for In-Context Localization
            var _jipt = [['project', 'readonly-mods-documentation']];
        </script>
        <script src="https://cdn.crowdin.com/jipt/jipt.js"></script>
    {% endif %}

    <!-- Google Analytics -->
    <script>
        (function(S,p,o,n,g,i,e){S['GoogleAnalyticsObject']=g;S[g]=S[g]||function(){
        (S[g].q=S[g].q||[]).push(arguments)},S[g].l=1*new Date();i=p.createElement(o),
        e=p.getElementsByTagName(o)[0];i.async=1;i.src=n;e.parentNode.insertBefore(i,e)
        })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

        ga('create', 'UA-177906763-1', 'auto');
        ga('send', 'pageview');
    </script>
{% endblock %}
