4 {% set is_top = (page and page.is_homepage) and not force_plain_page %}
5 {% set base_url = base_url or "." %}
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" />
19 {%- block htmltitle %}
20 <title>{% if page and page.title and not page.is_homepage %}{{ page.title }} - {% endif %}{{ config.site_name }}</title>
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">
34 <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
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>
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>
44 <script src="{{ base_url }}/js/elasticlunr.min.js"></script>
51 var base_url = '{{ base_url }}';
52 var is_top_frame = {% if is_top %}(window === window.parent){% else %}false{% endif %};
54 {# Include the first two levels of TOC data as a JS object, to be rendered in top frame #}
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 }} },
69 <script src="{{ base_url }}/js/base.js"></script>
70 {%- for path in extra_javascript %}
71 <script src="{{ path }}"></script>
75 {%- block analytics %}
76 {%- if config.google_analytics %}
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');
83 ga('create', '{{ config.google_analytics[0] }}', '{{ config.google_analytics[1] }}');
84 ga('send', 'pageview');
89 {%- block extrahead %} {% endblock %}
94 if (is_top_frame) { $('body').addClass('wm-top-page'); }
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).
102 {% include 'topbar.html' %}
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>
113 {# Code for the main template for all content pages. #}
115 <div class="container-fluid wm-page-content">
117 {%- if config.extra.article_nav_top != False %}
118 {% include "article-nav.html" %}
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>
134 {%- if config.extra.article_nav_bottom != False %}
135 {% include "article-nav.html" %}
140 <footer class="container-fluid wm-page-content">
143 {%- if page and page.edit_url %}
145 <a href="{{ page.edit_url }}">{% include 'repo-icon.html' %}Edit on {{ config.repo_name }}</a>
147 {%- elif config.repo_url %}
149 <a href="{{ config.repo_url }}">{% include 'repo-icon.html' %}{{ config.repo_name }}</a>
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>
163 MkDocs version : {{ mkdocs_version }}
164 Build Date UTC : {{ build_date_utc }}