From b1900d6ebcc39738885f90fa9f18b28206a74947 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Sun, 24 Jul 2016 19:13:40 -0400 Subject: very early checkin of template for user-docs, only a few pages filled out --- mkdocs-material/src/base.html | 265 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 265 insertions(+) create mode 100644 mkdocs-material/src/base.html (limited to 'mkdocs-material/src/base.html') diff --git a/mkdocs-material/src/base.html b/mkdocs-material/src/base.html new file mode 100644 index 00000000..23969d4b --- /dev/null +++ b/mkdocs-material/src/base.html @@ -0,0 +1,265 @@ + + + + + + + + + + + + + + {% block htmltitle %} + + + {% if page_title %} + {{ page_title }} - {{ site_name }} + {% elif page_description %} + {{ site_name }} - {{ page_description }} + {% else %} + {{ site_name }} + {% endif %} + + + {% if page_description %} + + {% endif %} + + + {% if canonical_url %} + + {% endif %} + + + {% if site_author %} + + {% endif %} + {% endblock %} + + + + + + + + + + + + + {% if config.extra.logo %} + + {% endif %} + + + {% set favicon = favicon | default("assets/images/favicon.ico", true) %} + + + + + + + + + + + {% if config.extra.palette %} + + {% endif %} + + + {% if config.extra.font != "none" %} + {% set text = config.extra.get("font", {}).text | default("Ubuntu") %} + {% set code = config.extra.get("font", {}).code | default("Ubuntu Mono") %} + {% set font = text + ':400,700|' + code | replace(' ', '+') %} + + + {% endif %} + + + {% for path in extra_css %} + + {% endfor %} + + + + + + {% block extrahead %}{% endblock %} + + + + {% set palette = config.extra.get("palette", {}) %} + {% set primary = palette.primary | replace(' ', '-') | lower %} + {% set accent = palette.accent | replace(' ', '-') | lower %} + + + + {% if repo_name == "GitHub" and repo_url %} + {% set repo_id = repo_url | replace("https://github.com/", "") %} + {% if repo_id[-1:] == "/" %} + {% set repo_id = repo_id[:-1] %} + {% endif %} + {% endif %} + + +
+
+
+ + + + + + + + + +
+ {% include "header.html" %} +
+ + +
+ + + {% set h1 = "\x3ch1 id=" in content %} + + +
+ {% include "drawer.html" %} +
+ + +
+
+ + + {% if not h1 %} +

{{ page_title | default(site_name, true)}}

+ {% endif %} + + + {{ content }} + + + + + + {% block footer %} +
+ {% include "footer.html" %} +
+ {% endblock %} +
+
+ + +
+
+
+
+
+
+
+
+
+ + + + + {% for path in extra_javascript %} + + {% endfor %} + + + {% if google_analytics %} + + {% endif %} + + -- cgit v1.3.1