brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.6 KiB · f18efe8 Raw
110 lines · html
1{#2    llvm-openmp-theme/layout.html3    ~~~~~~~~~~~~~~~~~4 5    Sphinx layout template for LLVM/OpenMP which as an almost identical clone6    of the agogo theme, originally written by Andi Albrecht.7 8    :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.9    :license: BSD, see LICENSE for details.10#}11{%- extends "basic/layout.html" %}12 13{% block header %}14    <div class="header-wrapper" role="banner">15      <div class="header">16        {%- if logo %}17          <p class="logo"><a href="{{ pathto(master_doc)|e }}">18            <img class="logo" src="{{ pathto('_static/' + logo, 1)|e }}" alt="Logo"/>19          </a></p>20        {%- endif %}21        {%- block headertitle %}22        <div class="headertitle"><a23          href="{{ pathto(master_doc)|e }}">{{ shorttitle|e }}</a></div>24        {%- endblock %}25        <div class="rel" role="navigation" aria-label="related navigation">26          <a href="{{ pathto('index') }}" title="LLVM OpenMP Documentation">HOME</a>27          {{ reldelim2 }}28          {%- for rellink in rellinks|reverse %}29          <a href="{{ pathto(rellink[0])|e }}" title="{{ rellink[1]|striptags|e }}"30             {{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a>31          {%- if not loop.last %}{{ reldelim2 }}{% endif %}32          {%- endfor %}33        </div>34       </div>35    </div>36{% endblock %}37 38 39{%- macro llvm_openmp_sidebar() %}40          {%- block sidebartoc %}41          <h3>{{ _('Table of Contents') }}</h3>42          {{ toctree(includehidden=True, titles_only=True, maxdepth=2) }}43          {%- endblock %}44          {%- block sidebarsearch %}45          <div role="search">46            <h3 style="margin-top: 1.5em;">{{ _('Search') }}</h3>47            <form class="search" action="{{ pathto('search') }}" method="get">48                <input type="text" name="q" />49                <input type="submit" value="{{ _('Go') }}" />50            </form>51          </div>52          {%- endblock %}53{% endmacro %}54 55{% block content %}56    <div class="content-wrapper">57      <div class="content">58        {%- if not theme_rightsidebar|tobool %}59        <div class="sidebar">60          {{ llvm_openmp_sidebar() }}61        </div>62        {%- endif %}63        <div class="document">64          {%- block document %}65            {{ super() }}66          {%- endblock %}67        </div>68        {%- if theme_rightsidebar|tobool %}69        <div class="sidebar">70          {{ llvm_openmp_sidebar() }}71        </div>72        {%- endif %}73        <div class="clearer"></div>74      </div>75    </div>76{% endblock %}77 78{% block footer %}79    <div class="footer-wrapper">80      <div class="footer">81        <div class="left">82          <div role="navigation" aria-label="related navigaton">83            <a href="{{ pathto('index') }}" title="LLVM OpenMP Documentation">HOME</a>84            {{ reldelim2 }}85            {%- for rellink in rellinks|reverse %}86            <a href="{{ pathto(rellink[0])|e }}" title="{{ rellink[1]|striptags|e }}"87              {{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a>88            {%- if not loop.last %}{{ reldelim2 }}{% endif %}89            {%- endfor %}90          </div>91          <div role="note" aria-label="source link">92            {%- if show_source and has_source and sourcename %}93              <br/>94              <a href="{{ pathto('_sources/' + sourcename, true)|e }}"95                rel="nofollow">{{ _('Show Source') }}</a>96            {%- endif %}97          </div>98        </div>99 100        <div class="right">101          {{ super() }}102        </div>103        <div class="clearer"></div>104      </div>105    </div>106{% endblock %}107 108{% block relbar1 %}{% endblock %}109{% block relbar2 %}{% endblock %}110