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

here = os.path.dirname(__file__)
version_file = os.path.join(here, '..', 'VERSION')


def read(file_path):
    return open(file_path).read()

project = 'ACD'
copyright = '2017, Łukasz Żukowski, under the MIT license'
author = 'Łukasz Żukowski'
version = read(version_file)
release = version
intersphinx_mapping = {
    'https://docs.python.org/': None,
}

extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.doctest',
    'sphinx.ext.intersphinx',
    'plantweb.directive',
]

exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
source_suffix = '.rst'
master_doc = 'index'
pygments_style = 'sphinx'
language = None
todo_include_todos = False
autoclass_content = "both"

html_static_path = ['_static']
htmlhelp_basename = 'ACDdoc'
html_theme = 'alabaster'
html_domain_indices = True
html_theme_options = {
    'logo': 'logo.png',
    'description': 'application support framework',
    'extra_nav_links': {
        '🚀 Gitlab': 'https://gitlab.com/lzukowski/acd',
        '💾 Download Releases': 'https://pypi.python.org/pypi/acd',
    },
    'sidebar_includehidden': False,
    'sidebar_collapse': True,
    'show_related': True,
}

html_sidebars = {
    '**': [
        'about.html',
        'navigation.html',
        'relations.html',
        'searchbox.html',
    ]
}
