{{! 
    Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
    See https://llvm.org/LICENSE.txt for license information.
    SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
    
    This file defines the template for generating namespaces
}}
<!DOCTYPE html>
<html lang="en-US">
    <head>
        <meta charset="utf-8"/>
        <title>{{NamespaceTitle}}</title>
        {{#Stylesheets}}
        <link rel="stylesheet" type="text/css" href="{{.}}"/>
        {{/Stylesheets}}
        {{#Scripts}}
        <script src="{{.}}"></script>
        {{/Scripts}}
        {{! Highlight.js dependency for syntax highlighting }}
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css">
        <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/cpp.min.js"></script>
    </head>
    <body>
        <nav class="navbar">
            <div class="navbar__container">
                {{#ProjectName}}
                <div class="navbar__logo">
                    {{ProjectName}}
                </div>
                {{/ProjectName}}
                <div class="navbar__menu">
                    <ul class="navbar__links">
                        <li class="navbar__item">
                            <a href="/" class="navbar__link">Namespace</a>
                        </li>
                        <li class="navbar__item">
                            <a href="/" class="navbar__link">Class</a>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
        <main>
            <div class="container">
                <div class="sidebar">
                    <h2>{{RecordType}} {{Name}}</h2>
                    <ul>
                        {{#Enums}}
                        <li class="sidebar-section">
                            <a class="sidebar-item" href="#Enums">Enums</a>
                        </li>
                        <ul>
                            {{#Obj}}
                            <li class="sidebar-item-container">
                                <a class="sidebar-item" href="#{{ID}}">{{EnumName}}</a>
                            </li>
                            {{/Obj}}
                        </ul>
                        {{/Enums}}
                        {{#Record}}
                        <li class="sidebar-section">
                            <a class="sidebar-item" href="#Classes">Inner Classes</a>
                        </li>
                        <ul>
                            {{#Links}}
                            <li class="sidebar-item-container">
                                <a class="sidebar-item" href="#{{ID}}">{{Name}}</a>
                            </li>
                            {{/Links}}
                        </ul>
                        {{/Record}}
                    </ul>
                </div>
                <div class="resizer" id="resizer"></div>
                <div class="content">
                    {{#Enums}}
                    <section id="Enums" class="section-container">
                        <h2>Enumerations</h2>
                        <div>
                            {{#Obj}}
                            {{>EnumPartial}}
                            {{/Obj}}
                        </div>
                    </section>
                    {{/Enums}}
                    {{#Record}}
                    <section id="Classes" class="section-container">
                        <h2>Inner Classes</h2>
                        <ul class="class-container">
                        {{#Links}}
                            <li id="{{ID}}" style="max-height: 40px;">
                                <a href="{{Link}}"><pre><code class="language-cpp code-clang-doc" >class {{Name}}</code></pre></a>
                            </li>
                        {{/Links}}
                        </ul>
                    </section>
                    {{/Record}}
                </div>
            </div>
        </main>
    </body>
</html>
