<aside class="three phpdocumentor-columns phpdocumentor-sidebar">
    <section data-search-form class="phpdocumentor-search">
        <h2 class="phpdocumentor-sidebar__category-header">查找</h2>
        <label class="phpdocumentor-label">
            <span class="visually-hidden">关键字</span>
            <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
        </label>
    </section>

    {% if menu %}
    <section class="phpdocumentor-sidebar__category">
        {{ include('menu.html.twig', {menuItem: menu}, with_context = false) }}
    </section>
    {% endif %}

    <section class="phpdocumentor-sidebar__category">
        <h2 class="phpdocumentor-sidebar__category-header">命名空间</h2>
        {% if usesNamespaces or not usesPackages %}
            <h3 class="phpdocumentor-sidebar__root-namespace">{{ project.namespace|route('全局') }}</h3>
            {% for namespace in project.namespace.children %}
                <h4 class="phpdocumentor-sidebar__root-namespace">{{ namespace|route('class:short') }}</h4>
                <ul class="phpdocumentor-list">
                    {% for child in namespace.children %}
                        <li>{{ child|route('class:short') }}</li>
                    {% endfor %}
                </ul>
            {% endfor %}
        {% endif %}
    </section>

    {% if usesPackages %}
    <section class="phpdocumentor-sidebar__category">
        <h2 class="phpdocumentor-sidebar__category-header">包</h2>
        {% for package in project.package.children %}
            <h3 class="phpdocumentor-sidebar__root-package">{{ package|route('class:short') }}</h3>
            <ul class="phpdocumentor-list">
                {% for child in package.children %}
                    <li>{{ child|route('class:short') }}</li>
                {% endfor %}
            </ul>
        {% endfor %}
    </section>
    {% endif %}

    <section class="phpdocumentor-sidebar__category">
        <h2 class="phpdocumentor-sidebar__category-header">报表</h2>
        {% if project.settings.custom['graphs.enabled'] %}
        <h3 class="phpdocumentor-sidebar__root-package"><a href="{{ path('graphs/classes.html') }}">类图</a></h3>
        {% endif %}
        <h3 class="phpdocumentor-sidebar__root-package"><a href="{{ path('reports/deprecated.html') }}">废弃</a></h3>
        <h3 class="phpdocumentor-sidebar__root-package"><a href="{{ path('reports/errors.html') }}">错误</a></h3>
        <h3 class="phpdocumentor-sidebar__root-package"><a href="{{ path('reports/markers.html') }}">标识</a></h3>
    </section>

    <section class="phpdocumentor-sidebar__category">
        <h2 class="phpdocumentor-sidebar__category-header">索引</h2>
        <h3 class="phpdocumentor-sidebar__root-package"><a href="{{ path('indices/files.html') }}">文件</a></h3>
    </section>
</aside>
