rdftemplate

Library for generating XML documents from RDF data using templates
git clone https://code.djc.id.au/git/rdftemplate/

src/doc/sphinx/_templates/layout.html (2243B) - raw

      1 {%- block doctype -%}
      2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      3 {%- endblock %}
      4 {%- set url_root = pathto('', 1) %}
      5 {%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
      6 
      7 {%- macro sidebar() %}
      8       <div class="sidebar">
      9           {%- if sidebars != None %}
     10             {#- new style sidebar: explicitly include/exclude templates #}
     11             {%- for sidebartemplate in sidebars %}
     12             {%- include sidebartemplate %}
     13             {%- endfor %}
     14           {%- endif %}
     15       </div>
     16 {%- endmacro %}
     17 
     18 <html xmlns="http://www.w3.org/1999/xhtml">
     19   <head>
     20     <meta http-equiv="Content-Type" content="text/html; charset={{ encoding }}" />
     21     {{ metatags }}
     22     {%- block htmltitle %}
     23     <title>{{ title|striptags|e }}</title>
     24     {%- endblock %}
     25     <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
     26     <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
     27     {%- for cssfile in css_files %}
     28     <link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
     29     {%- endfor %}
     30     <script type="text/javascript">
     31       var DOCUMENTATION_OPTIONS = {
     32         URL_ROOT:    '{{ url_root }}',
     33         VERSION:     '{{ release|e }}',
     34         COLLAPSE_INDEX: false,
     35         FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',
     36         HAS_SOURCE:  {{ has_source|lower }}
     37       };
     38     </script>
     39     {%- for scriptfile in script_files %}
     40     <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
     41     {%- endfor %}
     42 {%- block linktags %}
     43     <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
     44     <link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}" />
     45 {%- endblock %}
     46 {%- block extrahead %} {% endblock %}
     47   </head>
     48   <body>
     49 {%- block header %}{% endblock %}
     50 
     51 {%- block content %}
     52 
     53     <div class="document">
     54       {{ sidebar() }}
     55 
     56   {%- block document %}
     57       <div class="body">
     58         {%- if pagename != 'index' %}
     59             <a href="./">{{ shorttitle|e }}</a> &raquo;
     60         {%- endif %}
     61 
     62         {% block body %} {% endblock %}
     63       </div>
     64   {%- endblock %}
     65 
     66     </div>
     67 {%- endblock %}
     68 
     69   </body>
     70 </html>