Skip to content

Commit d718458

Browse files
committed
Revert "Removing custom templates."
This reverts commit 70c3d0f.
1 parent 2113350 commit d718458

File tree

4 files changed

+119
-0
lines changed

4 files changed

+119
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{% extends "!genindex.html" %}
2+
3+
{% block bodyclass %}{% endblock %}
4+
{% block sidebarwrapper %}{% endblock %}
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
{% extends "!layout.html" %}
2+
{%- macro secondnav() %}
3+
{%- if prev %}
4+
&laquo; <a href="{{ prev.link|e }}" title="{{ prev.title|e }}">previous</a>
5+
{{ reldelim2 }}
6+
{%- endif %}
7+
{%- if parents %}
8+
<a href="{{ parents.0.link|e }}" title="{{ parents.0.title|e }}" accesskey="U">up</a>
9+
{%- else %}
10+
<a title="{{ docstitle }}" href="{{ pathto('index') }}" accesskey="U">up</a>
11+
{%- endif %}
12+
{%- if next %}
13+
{{ reldelim2 }}
14+
<a href="{{ next.link|e }}" title="{{ next.title|e }}">next</a> &raquo;
15+
{%- endif %}
16+
{%- endmacro %}
17+
18+
{% block extrahead %}
19+
<script type="text/javascript">
20+
21+
var _gaq = _gaq || [];
22+
_gaq.push(['_setAccount', 'UA-19815738-1']);
23+
_gaq.push(['_trackPageview']);
24+
25+
(function() {
26+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
27+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
28+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
29+
})();
30+
31+
</script>
32+
{% endblock %}
33+
34+
{% block document %}
35+
<div id="custom-doc" class="{% block bodyclass %}{{ 'yui-t4' if pagename != 'index' else '' }}{% endblock %}">
36+
<div id="hd">
37+
<h1><a href="{{ pathto('index') }}">{{ docstitle }}</a></h1>
38+
<div id="global-nav">
39+
<a title="Home page" href="{{ pathto('index') }}">Home</a> {{ reldelim2 }}
40+
<a title="Table of contents" href="{{ pathto('contents') }}">Table of contents</a> |
41+
<a title="What's new" href="{{ pathto('whats_new') }}">What's new</a> |
42+
<a title="Getting started" href="{{ pathto('getting_started') }}">Getting started</a> |
43+
<a title="Examples" href="{{ pathto('examples') }}">Examples</a> |
44+
<a title="In depth" href="{{ pathto('in_depth') }}">In depth</a> |
45+
<a title="Reference" href="{{ pathto('reference') }}">Reference</a>
46+
</div>
47+
<div class="nav">{{ secondnav() }}</div>
48+
</div>
49+
50+
<div id="bd">
51+
<div id="yui-main">
52+
<div class="yui-b">
53+
<div class="yui-g" id="{{ pagename|replace('/', '-') }}">
54+
{% block body %}{% endblock %}
55+
</div>
56+
</div>
57+
</div>
58+
{% block sidebarwrapper %}
59+
{% if pagename != 'index' %}
60+
<div class="yui-b" id="sidebar">
61+
{{ sidebar() }}
62+
{%- if last_updated %}
63+
<h3>Last update:</h3>
64+
<p class="topless">{{ last_updated }}</p>
65+
{%- endif %}
66+
</div>
67+
{%- endif %}
68+
{% endblock %}
69+
</div>
70+
71+
<div id="ft">
72+
<div class="nav">{{ secondnav() }}</div>
73+
</div>
74+
</div>
75+
{% endblock %}
76+
77+
{% block sidebarrel %}
78+
<h3>Browse</h3>
79+
<ul>
80+
{% if prev %}
81+
<li>Prev: <a href="{{ prev.link }}">{{ prev.title }}</a></li>
82+
{% endif %}
83+
{% if next %}
84+
<li>Next: <a href="{{ next.link }}">{{ next.title }}</a></li>
85+
{% endif %}
86+
</ul>
87+
<h3>You are here:</h3>
88+
<ul>
89+
<li>
90+
<a href="{{ pathto('index') }}">{{ docstitle }}</a>
91+
{% for p in parents %}
92+
<ul><li><a href="{{ p.link }}">{{ p.title }}</a>
93+
{% endfor %}
94+
<ul><li>{{ title }}</li></ul>
95+
{% for p in parents %}</li></ul>{% endfor %}
96+
</li>
97+
</ul>
98+
{% endblock %}
99+
100+
{# Empty some default blocks out #}
101+
{% block relbar1 %}{% endblock %}
102+
{% block relbar2 %}{% endblock %}
103+
{% block sidebar1 %}{% endblock %}
104+
{% block sidebar2 %}{% endblock %}
105+
{% block footer %}
106+
<div class="footer">
107+
documentation automatically generated by <a href="http://sphinx.pocoo.org">Sphinx</a> | style mostly stolen from <a href="http://lettuce.it">lettuce.it</a>
108+
</div>
109+
{% endblock %}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{% extends "!modindex.html" %}
2+
{% block bodyclass %}{% endblock %}
3+
{% block sidebarwrapper %}{% endblock %}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{% extends "!search.html" %}
2+
{% block bodyclass %}{% endblock %}
3+
{% block sidebarwrapper %}{% endblock %}

0 commit comments

Comments
 (0)