Skip to content

Commit

Permalink
Separate out version info and links in sidebar.
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Jun 3, 2011
1 parent faa277e commit 69cc8c9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
7 changes: 1 addition & 6 deletions _templates/sidebar_links.html
Expand Up @@ -3,13 +3,9 @@ <h3>{{ _('Links') }}</h3>

<ul class="simple">
<li><a class="reference external"
href="{{pathto('index')}}">Home</a></li>
<li><a class="reference external"
href="{{pathto('download')}}">Download</a></li>
href="{{pathto('index')}}">Home</a></li>
<li><a class="reference external"
href="http://ipython.github.com/ipython-doc/">Documentation</a></li>
<li><a class="reference external" href="https://github.com/ipython/ipython">
Development</a></li>
<li><a class="reference external" href="https://github.com/ipython/ipython/issues">
Issue tracker</a></li>
<li>Mailing lists:<br/><span style="padding-left: 1em;">
Expand Down Expand Up @@ -38,5 +34,4 @@ <h3>{{ _('Links') }}</h3>
href="{{pathto('presentation')}}">Presentations</a></li>
</ul>


{%- endblock %}
14 changes: 14 additions & 0 deletions _templates/sidebar_versions.html
@@ -0,0 +1,14 @@
{%- block versions %}
<h3>{{ _('Versions') }}</h3>

<div class="tile"><span style="font-weight: bold;">Stable:</span><br/>
0.10.2 - April&nbsp;2011<br/>
<a href="{{pathto('download')}}">Download</a>
</div>

<div class="tile"><span style="font-weight: bold;">Development:</span>
<br/>pre-0.11<br/>
<a href="https://github.com/ipython/ipython">Github</a>
</div>

{%- endblock %}
2 changes: 1 addition & 1 deletion conf.py
Expand Up @@ -150,7 +150,7 @@
# Custom sidebar templates, maps document names to template names.
# TODO: split this up into several chunks
html_sidebars = {
'**': ['sidebar_links.html'],
'**': ['sidebar_versions.html', 'sidebar_links.html'],
}

# Additional templates that should be rendered to pages, maps page names to
Expand Down
9 changes: 9 additions & 0 deletions themes/agogo/static/agogo.css_t
Expand Up @@ -265,6 +265,15 @@ div.sphinxsidebar h3 {
text-transform: uppercase;
font-size: 130%;
letter-spacing: .1em;
margin-bottom: .4em;
}

div.sphinxsidebar .tile {
border: 1px solid #CCC;
border-radius: 10px;
background-color: #DDD;
padding-left: 0.5em;
margin: 1em 0;
}

div.sphinxsidebar ul {
Expand Down

0 comments on commit 69cc8c9

Please sign in to comment.