1. Ronald Oussoren
  2. asl

Commits

Ronald Oussoren  committed 6361266

Documentation tweaks

  • Participants
  • Parent commits 7007f47
  • Branches default

Comments (0)

Files changed (2)

File doc/_templates/donate.html

View file
+<h3>Support development</h3>
+<ul><li>
+  <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
+    <input type="hidden" name="cmd" value="_s-xclick">
+    <input type="hidden" name="hosted_button_id" value="5655733">
+    <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
+    <img alt="" border="0" src="https://www.paypal.com/nl_NL/i/scr/pixel.gif" width="1" height="1">
+  </form>
+</li>
+</ul>

File doc/conf.py

View file
 
 import sys, os
 
+def get_version():
+    setup_py = os.path.join(os.path.dirname(
+    os.path.dirname(
+        os.path.abspath(__file__))), "setup.cfg")
+    for ln in open(setup_py, 'rU'):
+        ln = ln.strip()
+    if ln.startswith('version = '):
+        return ln.split("=")[1].strip()
+
+
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
 # documentation root, use os.path.abspath to make it absolute, like shown here.
 # built documents.
 #
 # The short X.Y version.
-version = '0.9'
+version = get_version()
 # The full version, including alpha/beta/rc tags.
-release = '0.9'
+release = version
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
 
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
-html_theme = 'default'
+html_theme = 'nature'
 
 # Theme options are theme-specific and customize the look and feel of a theme
 # further.  For a list of options available for each theme, see the
 
 # Custom sidebar templates, maps document names to template names.
 #html_sidebars = {}
+html_sidebars = {
+    '**': [ 'localtoc.html', 'donate.html', 'searchbox.html' ],
+}
+
 
 # Additional templates that should be rendered to pages, maps page names to
 # template names.