2016-01-28 23:27:15 +01:00
|
|
|
<!DOCTYPE html>
|
2016-02-04 15:03:20 +01:00
|
|
|
<!--[if lt IE 7 ]><html class="no-js ie6"><![endif]-->
|
|
|
|
<!--[if IE 7 ]><html class="no-js ie7"><![endif]-->
|
|
|
|
<!--[if IE 8 ]><html class="no-js ie8"><![endif]-->
|
|
|
|
<!--[if IE 9 ]><html class="no-js ie9"><![endif]-->
|
2016-01-28 23:27:15 +01:00
|
|
|
<!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js"> <!--<![endif]-->
|
|
|
|
<head>
|
2016-02-04 15:03:20 +01:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
2016-01-28 23:27:15 +01:00
|
|
|
{% block htmltitle %}
|
|
|
|
{% if page_title %}
|
|
|
|
<title>{{ page_title }} - {{ site_name }}</title>
|
2016-02-04 15:03:20 +01:00
|
|
|
{% elif page_description %}
|
|
|
|
<title>{{ site_name }} - {{ page_description }}</title>
|
2016-01-28 23:27:15 +01:00
|
|
|
{% else %}
|
|
|
|
<title>{{ site_name }}</title>
|
|
|
|
{% endif %}
|
|
|
|
{% if page_description %}
|
2016-02-04 15:03:20 +01:00
|
|
|
<meta name="description" content="{{ page_description }}">
|
2016-01-28 23:27:15 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if canonical_url %}
|
2016-02-04 15:03:20 +01:00
|
|
|
<link rel="canonical" href="{{ canonical_url }}">
|
2016-01-28 23:27:15 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if site_author %}
|
2016-02-04 15:03:20 +01:00
|
|
|
<meta name="author" content="{{ site_author }}">
|
2016-01-28 23:27:15 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
2016-02-09 23:48:01 +01:00
|
|
|
<meta property="og:url" content="{{ canonical_url }}">
|
|
|
|
<meta property="og:title" content="{{ site_name }}">
|
|
|
|
<meta property="og:image" content="{{ canonical_url }}/{{ base_url }}/{{ config.extra.logo }}">
|
2016-02-04 15:03:20 +01:00
|
|
|
<meta name="apple-mobile-web-app-title" content="{{ site_name }}">
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
2016-02-09 21:59:37 +01:00
|
|
|
{% if config.extra.logo %}
|
|
|
|
<link rel="apple-touch-icon" href="{{ base_url }}/{{ config.extra.logo }}">
|
|
|
|
{% endif %}
|
2016-02-24 12:40:02 +01:00
|
|
|
{% set icon = icon | default("assets/images/favicon-e565ddfa3b.ico") %}
|
2016-02-09 21:59:37 +01:00
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="{{ base_url }}/{{ icon }}">
|
|
|
|
<link rel="icon" type="image/x-icon" href="{{ base_url }}/{{ icon }}">
|
2016-02-16 13:10:33 +01:00
|
|
|
<style>
|
|
|
|
@font-face {
|
|
|
|
font-family: 'Icon';
|
|
|
|
src: url('{{ base_url }}/assets/fonts/icon.eot?52m981');
|
|
|
|
src: url('{{ base_url }}/assets/fonts/icon.eot?#iefix52m981')
|
|
|
|
format('embedded-opentype'),
|
|
|
|
url('{{ base_url }}/assets/fonts/icon.woff?52m981')
|
|
|
|
format('woff'),
|
|
|
|
url('{{ base_url }}/assets/fonts/icon.ttf?52m981')
|
|
|
|
format('truetype'),
|
|
|
|
url('{{ base_url }}/assets/fonts/icon.svg?52m981#icon')
|
|
|
|
format('svg');
|
|
|
|
font-weight: normal;
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
</style>
|
2016-02-24 17:30:42 +01:00
|
|
|
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-b64b728552.css">
|
2016-02-24 16:24:32 +01:00
|
|
|
{% if config.extra.palette %}
|
|
|
|
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/palettes-05ab2406df.css">
|
|
|
|
{% endif %}
|
2016-02-24 12:40:02 +01:00
|
|
|
{% if config.extra.font != "none" %}
|
|
|
|
{% set text = config.extra.get("font", {}).text | default("Ubuntu") %}
|
|
|
|
{% set code = config.extra.get("font", {}).code | default("Ubuntu Mono") %}
|
2016-02-17 18:08:11 +01:00
|
|
|
{% set font = text + ':400,700|' + code | replace(' ', '+') %}
|
2016-02-16 13:10:33 +01:00
|
|
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}">
|
|
|
|
<style>
|
|
|
|
body, input {
|
|
|
|
font-family: '{{ text }}', Helvetica, Arial, sans-serif;
|
|
|
|
}
|
|
|
|
pre, code {
|
|
|
|
font-family: '{{ code }}', 'Courier New', 'Courier', monospace;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
{% endif %}
|
2016-01-28 23:27:15 +01:00
|
|
|
{% for path in extra_css %}
|
2016-02-04 15:03:20 +01:00
|
|
|
<link rel="stylesheet" href="{{ path }}">
|
2016-01-28 23:27:15 +01:00
|
|
|
{% endfor %}
|
2016-02-20 17:25:14 +01:00
|
|
|
<script src="{{ base_url }}/assets/javascripts/modernizr-4ab42b99fd.js"></script>
|
2016-01-28 23:27:15 +01:00
|
|
|
{% block extrahead %}{% endblock %}
|
|
|
|
</head>
|
2016-02-24 16:24:32 +01:00
|
|
|
{% set palette = config.extra.get("palette", {}) %}
|
|
|
|
{% set primary = palette.primary | replace(' ', '-') | lower %}
|
|
|
|
{% set accent = palette.accent | replace(' ', '-') | lower %}
|
|
|
|
<body class="{% if primary %}palette-primary-{{ primary }}{% endif %} {% if accent %}palette-accent-{{ accent }}{% endif %}">
|
2016-02-24 12:40:02 +01:00
|
|
|
{% if repo_name == "GitHub" and repo_url %}
|
|
|
|
{% set repo_id = repo_url | replace("https://github.com/", "") %}
|
|
|
|
{% if repo_id[-1:] == "/" %}
|
2016-02-10 14:09:30 +01:00
|
|
|
{% set repo_id = repo_id[:-1] %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2016-01-28 23:27:15 +01:00
|
|
|
<div class="backdrop">
|
|
|
|
<div class="backdrop-paper"></div>
|
|
|
|
</div>
|
2016-02-04 15:03:20 +01:00
|
|
|
<input class="toggle" type="checkbox" id="toggle-drawer">
|
|
|
|
<input class="toggle" type="checkbox" id="toggle-search">
|
2016-01-28 23:27:15 +01:00
|
|
|
<label class="toggle-button overlay" for="toggle-drawer"></label>
|
|
|
|
<header class="header">
|
|
|
|
{% include "header.html" %}
|
|
|
|
</header>
|
|
|
|
<main class="main">
|
2016-02-09 12:58:55 +01:00
|
|
|
{% set h1 = "\x3ch1 id=" in content %}
|
2016-01-28 23:27:15 +01:00
|
|
|
<div class="drawer">
|
|
|
|
{% include "drawer.html" %}
|
|
|
|
</div>
|
|
|
|
<article class="article">
|
|
|
|
<div class="wrapper">
|
2016-02-05 15:35:15 +01:00
|
|
|
{% if not h1 %}
|
2016-02-24 12:40:02 +01:00
|
|
|
<h1>{{ page_title | default(site_name, true)}}</h1>
|
2016-01-28 23:27:15 +01:00
|
|
|
{% endif %}
|
|
|
|
{{ content }}
|
|
|
|
<aside class="copyright" role="note">
|
|
|
|
{% if copyright %}
|
|
|
|
{{ copyright }} –
|
|
|
|
{% endif %}
|
|
|
|
Documentation built with
|
|
|
|
<a href="http://www.mkdocs.org" target="_blank">MkDocs</a>
|
|
|
|
using the
|
2016-02-11 12:33:08 +01:00
|
|
|
<a href="http://squidfunk.github.io/mkdocs-material/" target="_blank">
|
2016-02-09 12:58:55 +01:00
|
|
|
Material
|
2016-01-28 23:27:15 +01:00
|
|
|
</a>
|
|
|
|
theme.
|
|
|
|
</aside>
|
|
|
|
{% block footer %}
|
|
|
|
<footer class="footer">
|
|
|
|
{% include "footer.html" %}
|
|
|
|
</footer>
|
|
|
|
{% endblock %}
|
2016-02-04 15:03:20 +01:00
|
|
|
</div></article>
|
2016-01-28 23:27:15 +01:00
|
|
|
<div class="results" role="status" aria-live="polite">
|
|
|
|
<div class="scrollable">
|
|
|
|
<div class="wrapper">
|
|
|
|
<div class="meta"></div>
|
|
|
|
<div class="list"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
<script>
|
|
|
|
var base_url = '{{ base_url }}';
|
|
|
|
var repo_id = '{{ repo_id }}';
|
|
|
|
</script>
|
2016-02-25 19:05:53 +01:00
|
|
|
<script src="{{ base_url }}/assets/javascripts/application-0c6e4a273e.js"></script>
|
2016-01-28 23:27:15 +01:00
|
|
|
{% for path in extra_javascript %}
|
|
|
|
<script src="{{ path }}"></script>
|
|
|
|
{% endfor %}
|
|
|
|
{% if google_analytics %}
|
|
|
|
<script>
|
|
|
|
(function(i,s,o,g,r,a,m){
|
|
|
|
i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||
|
|
|
|
[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;
|
|
|
|
m.parentNode.insertBefore(a,m)
|
|
|
|
})(window, document,
|
2016-02-16 13:11:43 +01:00
|
|
|
'script', '//www.google-analytics.com/analytics.js', 'ga');
|
|
|
|
/* General initialization */
|
2016-01-28 23:27:15 +01:00
|
|
|
ga('create', '{{ google_analytics[0] }}', '{{ google_analytics[1] }}');
|
|
|
|
ga('set', 'anonymizeIp', true);
|
|
|
|
ga('send', 'pageview');
|
2016-02-16 13:11:43 +01:00
|
|
|
/* Track outbound links */
|
|
|
|
var buttons = document.querySelectorAll('a');
|
|
|
|
Array.prototype.map.call(buttons, function(item) {
|
|
|
|
if (item.host != window.location.host) {
|
|
|
|
item.addEventListener('click', function() {
|
|
|
|
var action = item.getAttribute('data-action') || 'follow';
|
|
|
|
ga('send', 'event', 'outbound', action, item.href);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
2016-01-28 23:27:15 +01:00
|
|
|
</script>
|
|
|
|
{% endif %}
|
|
|
|
</body>
|
|
|
|
</html>
|