mirror of
https://github.com/mkdocs/mkdocs.git
synced 2026-03-27 09:58:31 +07:00
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
This commit is contained in:
@@ -4,7 +4,9 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
{% block htmltitle %}
|
||||
<title>{{ page_title }}</title>
|
||||
{% endblock %}
|
||||
|
||||
{# CSS #}
|
||||
<link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
|
||||
@@ -26,6 +28,7 @@
|
||||
pre, code {font-size: 100%;}
|
||||
h3, h4, h5, h6 {color: #2980b9; font-weight: 300}
|
||||
</style>
|
||||
{%- block extrahead %} {% endblock %}
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
@@ -62,7 +65,9 @@
|
||||
{{ content }}
|
||||
</div>
|
||||
</div>
|
||||
{%- block footer %}
|
||||
{% include "footer.html" %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user