import better

extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.autosummary',
    'sphinx.ext.intersphinx',
    'sphinx.ext.mathjax',
    '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'Downhill'
copyright = u'2015, Leif Johnson'
version = '0.5'
release = '0.5.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': ('https://docs.python.org/3.4/', None),
    'numpy': ('http://docs.scipy.org/doc/numpy/', None),
    'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None),
}
