comparison 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
comparison
equal deleted inserted replaced
5029:333b01621772 5030:515ab1749b14
1 {#
2 _templates/layout.html
3 ~~~~~~~~~~~~~~~~~~~~~~
4
5 Custom layout template for Roundup.
6
7 #}
8 {%- block doctype -%}
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 9 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 10 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 11 {%- endblock %}
4 {%- macro relbar(class) %} 12 {%- macro relbar(class) %}
5 <div class="related {{ class }}"> 13 <div class="related {{ class }}">
6 <ul> 14 <ul>
7 {%- for rellink in rellinks %} 15 {%- for rellink in rellinks %}
8 <li class="right" {% if loop.first %}style="margin-right: 10px"{% endif %}> 16 <li class="right" {% if loop.first %}style="margin-right: 10px"{% endif %}>
63 <script type="text/javascript">$('#searchbox').show(0);</script> 71 <script type="text/javascript">$('#searchbox').show(0);</script>
64 {%- endif %} 72 {%- endif %}
65 {%- endblock %} 73 {%- endblock %}
66 {%- endmacro %} 74 {%- endmacro %}
67 75
76 {%- macro css() %}
77 <link rel="stylesheet" href="{{ pathto('_static/basic.css', 1) }}" type="text/css" />
78 <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
79 <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
80 {%- for cssfile in css_files %}
81 <link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
82 {%- endfor %}
83 {%- endmacro %}
84
68 <html xmlns="http://www.w3.org/1999/xhtml"> 85 <html xmlns="http://www.w3.org/1999/xhtml">
69 <head> 86 <head>
70 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 87 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
71 {{ metatags }} 88 {{ metatags }}
72 {%- if builder != 'htmlhelp' %} 89 {%- if builder != 'htmlhelp' %}
78 if in_admin_panel %}&admin=yes{% endif %}" type="text/css" /> 95 if in_admin_panel %}&admin=yes{% endif %}" type="text/css" />
79 {%- for link, type, title in page_links %} 96 {%- for link, type, title in page_links %}
80 <link rel="alternate" type="{{ type|e(true) }}" title="{{ title|e(true) }}" href="{{ link|e(true) }}" /> 97 <link rel="alternate" type="{{ type|e(true) }}" title="{{ title|e(true) }}" href="{{ link|e(true) }}" />
81 {%- endfor %} 98 {%- endfor %}
82 {%- else %} 99 {%- else %}
83 <link rel="stylesheet" href="{{ pathto('_static/style.css', 1) }}" type="text/css" /> 100 {{ css() }}
84 <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
85 {%- endif %} 101 {%- endif %}
86 {%- if builder != 'htmlhelp' %} 102 {%- if builder != 'htmlhelp' %}
87 <script type="text/javascript"> 103 <script type="text/javascript">
88 var DOCUMENTATION_OPTIONS = { 104 var DOCUMENTATION_OPTIONS = {
89 URL_ROOT: '{{ pathto("", 1) }}', 105 URL_ROOT: '{{ pathto("", 1) }}',

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