#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sphinx_rtd_theme

extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.viewcode',
    'sphinx.ext.autosummary',
    'sphinxarg.ext'
]

source_suffix = '.rst'

master_doc = 'index'

project = 'klon'
copyright = '2016, timwie'
author = 'timwie'

html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]


# autodoc __init__ and __call__ if defined
def skip(app, what, name, obj, skip, options):
    if name == "__init__" or name == "__call__":
        return False
    return skip


def setup(app):
    app.connect("autodoc-skip-member", skip)
