diff doc/_templates/layout.html @ 5030:515ab1749b14 1.5.1

Preparing 1.5.1 steps 7/16 7. python setup.py build_doc * fix include of basic.css for rendering permalink anchors * make anchors less obtrusive
author anatoly techtonik <techtonik@gmail.com>
date Mon, 11 Jan 2016 21:59:17 +0300
parents 7cf0468a9fa4
children 9619d64c0351
line wrap: on
line diff
--- a/doc/_templates/layout.html	Mon Jan 11 21:16:08 2016 +0300
+++ b/doc/_templates/layout.html	Mon Jan 11 21:59:17 2016 +0300
@@ -1,6 +1,14 @@
+{#
+    _templates/layout.html
+    ~~~~~~~~~~~~~~~~~~~~~~
+
+    Custom layout template for Roundup.
+
+#}
+{%- block doctype -%}
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
+{%- endblock %}
 {%- macro relbar(class) %}
     <div class="related {{ class }}">
       <ul>
@@ -65,6 +73,15 @@
   {%- endblock %}
 {%- endmacro %}
 
+{%- macro css() %}
+    <link rel="stylesheet" href="{{ pathto('_static/basic.css', 1) }}" type="text/css" />
+    <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
+    <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
+    {%- for cssfile in css_files %}
+    <link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
+    {%- endfor %}
+{%- endmacro %}
+
 <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
@@ -80,8 +97,7 @@
     <link rel="alternate" type="{{ type|e(true) }}" title="{{ title|e(true) }}" href="{{ link|e(true) }}" />
     {%- endfor %}
     {%- else %}
-    <link rel="stylesheet" href="{{ pathto('_static/style.css', 1) }}" type="text/css" />
-    <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
+    {{ css() }}
     {%- endif %}
     {%- if builder != 'htmlhelp' %}
     <script type="text/javascript">

Roundup Issue Tracker: http://roundup-tracker.org/