<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>RF docs index</title>
    <meta name="description" content="RF docs index">
    <meta name="author" content="Vincent Maire maire.vincent31@gmail.com">

    <link rel="icon" href="/favicon.ico">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>

    <style>
        body {
            margin: 2em 3em;
            font-family: 'Trebuchet MS';
        }
        
        .kw-item {
            border: solid 2px gray;
        }
    </style>
</head>

<body>
    <h1 style="font-weight: bold">Robot Framework documentation index</h1>
    <br> {%- if external_resources %}
    <h2>
        External resources
    </h2>
    <div class="list-group">
        {%- for resource in external_resources|sort %}
        <a href="{{ resource.url }}" target="_blank" class="list-group-item list-group-item-action">{{ resource.name }}</a> {%- endfor %}
    </div>
    <br> {%- endif %} {%- if indexed_libs %}
    <h2>
        Imported libraries
    </h2>
    <div class="accordion" id="accordion-libraries">
        {%- for lib in indexed_libs|sort %}
        <div class="accordion-item">
            <h2 class="accordion-header" id="heading-{{ lib.name | quote | rmdot }}">
                <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-{{ lib.name | quote | rmdot }}" aria-expanded="false" aria-controls="collapse-{{ lib.name | quote | rmdot }}">
                    {{ lib.name }}
                </button>
            </h2>

            <div id="collapse-{{ lib.name | quote | rmdot }}" class="accordion-collapse collapse" aria-labelledby="heading-{{ lib.name | quote | rmdot }}">
                <div class="accordion-body">
                    <div class="list-group">
                        <a href="{{ lib.html_libdoc_path.relative_to(dirpath)|string }}" target="_blank" class="list-group-item list-group-item-action kw-item" style="font-weight: bold; background-color: ghostwhite">Library documentation</a> {%- for keyword
                        in lib.libdata.rflibrary.keywords|sort %}
                        <a href="{{ lib.html_libdoc_path.relative_to(dirpath)|string }}#{{ keyword.name | quote }}" target="_blank" class="list-group-item list-group-item-action kw-item">{{ keyword.name }}
                            <p style="font-size: small; margin: 0;">{{ keyword.args | map(attribute='repr') | join(' | ') }}</p></a> {%- endfor %}
                    </div>
                </div>
            </div>
        </div>
        {%- endfor %}
    </div>
    {%- endif %}
</body>

</html>