DOC: Link logo to main webpage. Add navigation side bar.

This commit is contained in:
Stefan van der Walt
2012-02-08 13:02:41 -08:00
parent cbbc24b5d2
commit 18b76a661d
4 changed files with 23 additions and 3 deletions
+8
View File
@@ -0,0 +1,8 @@
{% if pagename != 'index' %}
{%- if display_toc %}
<h3>Contents</h3>
{{ toc }}
{%- endif %}
{% endif %}
+12
View File
@@ -0,0 +1,12 @@
{%- block navigation %}
{% if pagename != 'index' %}
<h3>Navigation</h3>
<p>
<a href="{{ pathto(master_doc) }}">Documentation Home</a>
</p>
<p>&nbsp;</p>
{% endif %}
{%- endblock %}
+2 -2
View File
@@ -151,9 +151,9 @@ html_static_path = ['_static']
# Custom sidebar templates, maps document names to template names.
html_sidebars = {
'**': ['localtoc.html',
'**': ['navigation.html',
'localtoc.html',
'relations.html',
'sourcelink.html',
'versions.html',
'searchbox.html'],
}
+1 -1
View File
@@ -17,7 +17,7 @@
{%- block headertitle %}
{%- if logo %}
<div class="logo"><a href="{{ pathto(master_doc) }}">
<div class="logo"><a href="http://scikits-image.org">
<img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/>
</a></div>
{%- endif %}