Commits

Andy Mikhailenko committed 9fad64f Draft

Update docs to play nice with ReadTheDocs theme

Comments (0)

Files changed (2)

 
 # The theme to use for HTML and HTML Help pages.  Major themes that come with
 # Sphinx are currently 'default' and 'sphinxdoc'.
-html_theme = 'haiku'  # or: agogo
+
+# see http://read-the-docs.readthedocs.org/en/latest/faq.html#how-do-i-change-behavior-for-read-the-docs
+on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
+if on_rtd:
+    html_theme = 'default'
+else:
+    html_theme = 'haiku'  # or: agogo
 
 # 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
 .. automodule:: dark.shaping
    :members:
+
+.. TODO::
+   Use pyvttbl_
+
+.. _pyvttbl: https://code.google.com/p/pyvttbl