# -*- coding: utf-8 -*-
# missingtvshows documentation build configuration file
import pkg_resources
import datetime
import os


on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

try:
    import sphinx_rtd_theme
    html_theme = 'sphinx_rtd_theme'
    html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
except ImportError:
    html_theme = 'default'
    if not on_rtd:
        print('-' * 74)
        print('Warning: sphinx-rtd-theme not installed, building with default '
              'theme.')
        print('-' * 74)

extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.coverage',
    'sphinx.ext.viewcode'
]
source_suffix = '.rst'
master_doc = 'index'

project = u'Missing TV Shows for Kodi'
this_year = datetime.date.today().year
copyright = u'{}, Andreas Ruppen'.format(this_year)
if on_rtd:
    version = '1.2.2.dev0'
else:
    version = pkg_resources.require("missingtvshows")[0].version
release = version

exclude_patterns = ['_build', 'lib', 'bin', 'include', 'local']
pygments_style = 'sphinx'

htmlhelp_basename = 'missingtvshowsdoc'

man_pages = [
    ('index', 'mtvs', u'mtvs doc',
     [u'Andreas Ruppen'], 1)
]

# -*- coding: utf-8 -*-
# missingtvshows documentation build configuration file
import pkg_resources
import datetime
import os


on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

try:
    import sphinx_rtd_theme
    html_theme = 'sphinx_rtd_theme'
    html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
except ImportError:
    html_theme = 'default'
    if not on_rtd:
        print('-' * 74)
        print('Warning: sphinx-rtd-theme not installed, building with default '
              'theme.')
        print('-' * 74)

extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.coverage',
    'sphinx.ext.viewcode'
]
source_suffix = '.rst'
master_doc = 'index'

project = u'Missing TV Shows for Kodi'
this_year = datetime.date.today().year
copyright = u'{}, Andreas Ruppen'.format(this_year)
if on_rtd:
    version = '1.2.2.dev0'
else:
    version = pkg_resources.require("mtvs")[0].version
release = version

exclude_patterns = ['_build', 'lib', 'bin', 'include', 'local']
pygments_style = 'sphinx'

htmlhelp_basename = 'missingtvshowsdoc'

man_pages = [
    ('index', 'mtvs', u'mtvs doc',
     [u'Andreas Ruppen'], 1)
]

Fix readthedocs