Update release name.
[AGL/documentation.git] / theme / mkdocs_windmill / base.html
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4   {% set is_top = (page and page.is_homepage) and not force_plain_page %}
5   {% set base_url = base_url or "." %}
6
7   {%- block site_meta %}
8     <meta charset="utf-8">
9     <meta http-equiv="X-UA-Compatible" content="IE=edge">
10     <meta name="viewport" content="width=device-width, initial-scale=1.0">
11     {% if page and page.is_homepage %}<meta name="description" content="{{ config.site_description }}">{% endif %}
12     {% if config.site_author %}<meta name="author" content="{{ config.site_author }}">{% endif %}
13     {% if page and page.canonical_url %}<link rel="canonical" href="{{ page.canonical_url }}">{% endif %}
14     {% if config.site_favicon %}<link rel="shortcut icon" href="/img/favicon.ico">
15     {% else %}<link rel="shortcut icon" href="/img/favicon.ico">{% endif %}
16     <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
17   {%- endblock %}
18
19   {%- block htmltitle %}
20     <title>{% if page and page.title and not page.is_homepage %}{{ page.title }} - {% endif %}{{ config.site_name }}</title>
21   {%- endblock %}
22
23   {%- block styles %}
24     <link href="{{ base_url }}/css/bootstrap-3.3.7.min.css" rel="stylesheet">
25     <link href="{{ base_url }}/css/font-awesome-4.7.0.css" rel="stylesheet">
26     <link href="{{ base_url }}/css/base.css" rel="stylesheet">
27     <link rel="stylesheet" href="{{ base_url }}/css/highlight.css">
28     {%- for path in extra_css %}
29     <link href="{{ path }}" rel="stylesheet">
30     {%- endfor %}
31   {%- endblock %}
32
33   {%- block libs %}
34     <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
35     <!--[if lt IE 9]>
36         <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
37         <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
38     <![endif]-->
39
40     <script src="{{ base_url }}/js/jquery-3.2.1.min.js"></script>
41     <script src="{{ base_url }}/js/bootstrap-3.3.7.min.js"></script>
42     <script src="{{ base_url }}/js/highlight.pack.js"></script>
43     {% if is_top %}
44       <script src="{{ base_url }}/js/elasticlunr.min.js"></script>
45     {% endif %}
46     <base target="_top">
47   {%- endblock %}
48
49   {%- block scripts %}
50     <script>
51       var base_url = '{{ base_url }}';
52       var is_top_frame = {% if is_top %}(window === window.parent){% else %}false{% endif %};
53       {%- if page %}
54         {# Include the first two levels of TOC data as a JS object, to be rendered in top frame #}
55         var pageToc = [
56         {%- for item in page.toc %}
57           {title: {{ item.title|tojson }}, url: {{ ('#_top' if loop.first else item.url)|tojson }}, children: [
58             {%- for item in item.children %}
59               {title: {{ item.title|tojson }}, url: {{ item.url|tojson }} },
60             {%- endfor %}
61           ]},
62         {%- endfor %}
63         ];
64       {%- else %}
65         var page_toc = null;
66       {%- endif %}
67
68     </script>
69     <script src="{{ base_url }}/js/base.js"></script>
70     {%- for path in extra_javascript %}
71       <script src="{{ path }}"></script>
72     {%- endfor %}
73   {%- endblock %}
74
75   {%- block analytics %}
76     {%- if config.google_analytics %}
77     <script>
78         (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
79         (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
80         m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
81         })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
82
83         ga('create', '{{ config.google_analytics[0] }}', '{{ config.google_analytics[1] }}');
84         ga('send', 'pageview');
85     </script>
86     {%- endif %}
87   {%- endblock %}
88
89   {%- block extrahead %} {% endblock %}
90 </head>
91
92 <body>
93 <script>
94 if (is_top_frame) { $('body').addClass('wm-top-page'); }
95 </script>
96
97 {#
98  # Code for the top frame. It should ideally be separate from the index page (which is likely
99  # possible once theme_config is released with mkdocs 1.0).
100  #}
101 {%- if is_top -%}
102   {% include 'topbar.html' %}
103
104   <div id="main-content" class="wm-page-top-frame">
105     {% include 'nav-pane.html' %}
106     <div class="wm-content-pane">
107       <iframe class="wm-article" name="article"></iframe>
108     </div>
109   </div>
110
111 {%- endif -%}
112
113 {# Code for the main template for all content pages. #}
114
115 <div class="container-fluid wm-page-content">
116   <a name="_top"></a>
117   {%- if config.extra.article_nav_top != False %}
118     {% include "article-nav.html" %}
119   {%- endif %}
120
121   {%- block content %}
122     {% if page and page.meta.source %}
123       <div class="source-links">
124       {% for filename in page.meta.source %}
125           <span class="label label-primary">{{ filename }}</span>
126       {% endfor %}
127       </div>
128     {% endif %}
129
130     {{ page.content }}
131   {%- endblock %}
132
133   <br>
134   {%- if config.extra.article_nav_bottom != False %}
135     {% include "article-nav.html" %}
136     <br>
137   {%- endif %}
138 </div>
139
140 <footer class="container-fluid wm-page-content">
141 {%- block footer %}
142   {%- block repo %}
143     {%- if page and page.edit_url %}
144       <p>
145         <a href="{{ page.edit_url }}">{% include 'repo-icon.html' %}Edit on {{ config.repo_name }}</a>
146       </p>
147     {%- elif config.repo_url %}
148       <p>
149         <a href="{{ config.repo_url }}">{% include 'repo-icon.html' %}{{ config.repo_name }}</a>
150       </p>
151     {%- endif %}
152   {%- endblock %}
153
154   {%- if config.copyright %}<p>{{ config.copyright }}</p>{%- endif %}
155   <p>Documentation built with <a href="http://www.mkdocs.org/">MkDocs</a> using <a href="https://github.com/gristlabs/mkdocs-windmill">Windmill</a> theme by Grist Labs.</p>
156 {%- endblock %}
157 </footer>
158
159 </body>
160 </html>
161 {%- if is_top %}
162 <!--
163 MkDocs version : {{ mkdocs_version }}
164 Build Date UTC : {{ build_date_utc }}
165 -->
166 {%- endif %}