import os
import sys

import better

extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.autosummary',
    #'sphinx.ext.doctest',
    'sphinx.ext.intersphinx',
    'sphinx.ext.mathjax',
    #'sphinx.ext.pngmath',
    'sphinx.ext.viewcode',
    'numpydoc',
    ]
autosummary_generate = True
autodoc_default_flags = ['members']
numpydoc_show_class_members = False
numpydoc_show_inherited_class_members = True
source_suffix = '.rst'
source_encoding = 'utf-8-sig'
master_doc = 'index'
project = u'Theanets'
copyright = u'2015, Leif Johnson'
version = '0.5'
release = '0.5.2'
exclude_patterns = ['_build']
templates_path = ['_templates']
pygments_style = 'tango'

html_theme = 'better'
html_theme_path = [better.better_theme_path]
html_theme_options = dict(
  rightsidebar=False,
  inlinecss='',
  cssfiles=['_static/style-tweaks.css'],
  showheader=True,
  showrelbartop=True,
  showrelbarbottom=True,
  linktotheme=True,
  sidebarwidth='15rem',
  textcolor='#111',
  headtextcolor='#333',
  footertextcolor='#333',
  ga_ua='',
  ga_domain='',
)
html_short_title = 'Home'
html_static_path = ['_static']

def h(xs):
    return ['{}.html'.format(x) for x in xs.split()]
html_sidebars = {
    'index': h('gitwidgets globaltoc sourcelink searchbox'),
    '**': h('gitwidgets localtoc sourcelink searchbox'),
}

intersphinx_mapping = {
    'python': ('http://docs.python.org/', None),
    'numpy': ('http://docs.scipy.org/doc/numpy/', None),
    'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None),
}

import os
import sys

import better

extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.autosummary',
    #'sphinx.ext.doctest',
    'sphinx.ext.intersphinx',
    'sphinx.ext.mathjax',
    #'sphinx.ext.pngmath',
    'sphinx.ext.viewcode',
    'numpydoc',
    ]
autosummary_generate = True
autodoc_default_flags = ['members']
numpydoc_show_class_members = False
numpydoc_show_inherited_class_members = True
source_suffix = '.rst'
source_encoding = 'utf-8-sig'
master_doc = 'index'
project = u'Theanets'
copyright = u'2015, Leif Johnson'
version = '0.6'
release = '0.6.0pre'
exclude_patterns = ['_build']
templates_path = ['_templates']
pygments_style = 'tango'

html_theme = 'better'
html_theme_path = [better.better_theme_path]
html_theme_options = dict(
  rightsidebar=False,
  inlinecss='',
  cssfiles=['_static/style-tweaks.css'],
  showheader=True,
  showrelbartop=True,
  showrelbarbottom=True,
  linktotheme=True,
  sidebarwidth='15rem',
  textcolor='#111',
  headtextcolor='#333',
  footertextcolor='#333',
  ga_ua='',
  ga_domain='',
)
html_short_title = 'Home'
html_static_path = ['_static']

def h(xs):
    return ['{}.html'.format(x) for x in xs.split()]
html_sidebars = {
    'index': h('gitwidgets globaltoc sourcelink searchbox'),
    '**': h('gitwidgets localtoc sourcelink searchbox'),
}

intersphinx_mapping = {
    'python': ('http://docs.python.org/', None),
    'numpy': ('http://docs.scipy.org/doc/numpy/', None),
    'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None),
}

Change version in built docs.