From ea3235e5d5a2add5b933fd680574bb7cd3c002ae Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Thu, 23 Oct 2014 13:28:30 -0700 Subject: [PATCH] Add blocks for Read the Docs theme. This makes the theme directory overriding actually useful. :) These match the theme blocks on the Sphinx theme: https://github.com/snide/sphinx_rtd_theme/blob/master/sphinx_rtd_theme/layout.html --- mkdocs/themes/readthedocs/base.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mkdocs/themes/readthedocs/base.html b/mkdocs/themes/readthedocs/base.html index f9bdfb58..ee1e3170 100644 --- a/mkdocs/themes/readthedocs/base.html +++ b/mkdocs/themes/readthedocs/base.html @@ -4,7 +4,9 @@ + {% block htmltitle %} {{ page_title }} + {% endblock %} {# CSS #} @@ -26,6 +28,7 @@ pre, code {font-size: 100%;} h3, h4, h5, h6 {color: #2980b9; font-weight: 300} + {%- block extrahead %} {% endblock %} @@ -62,7 +65,9 @@ {{ content }} + {%- block footer %} {% include "footer.html" %} + {% endblock %}