Skip to content

Commit

Permalink
addes a few static links to the sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fiers committed Nov 12, 2012
1 parent 50c3134 commit cc7bcbc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
_long = F.read().strip()
_short = _long.rsplit('.',1)[0]


# The short X.Y version.
version = _short
# The full version, including alpha/beta/rc tags.
Expand Down Expand Up @@ -142,8 +142,8 @@
# Custom sidebar templates, maps document names to template names.
#html_sidebars = {}
html_sidebars = {
'*': ['globaltoc.html', 'sourcelink.html', 'searchbox.html'],
'*/*': ['globaltoc.html', 'sourcelink.html', 'searchbox.html'],
'*': ['globaltoc.html', 'staticlinks.html', 'searchbox.html'],
'*/*': ['globaltoc.html', 'staticlinks.html', 'searchbox.html'],
}

# Additional templates that should be rendered to pages, maps page names to
Expand Down
14 changes: 14 additions & 0 deletions sphinx/nature/staticlinks.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{#
nature/staticlinks.html
~~~~~~~~~~~~~~~~~~~~~

Sphinx sidebar template to show a few static links

#}

<h3>Links</h3>
<ul class="this-page-menu">
<li><a href="https://github.com/mfiers/Moa">Moa on Github</a></li>
<li><a href="https://github.com/mfiers/Moa/issues">Moa issue tracker</a></li>
<li><a href="http://pypi.python.org/pypi/moa/">Python package index</a></li>
</ul>

0 comments on commit cc7bcbc

Please sign in to comment.