1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
# -*- coding: utf-8 -*-
import sys
import os
import click_log
extensions = ['sphinx.ext.autodoc']
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = 'click-log'
copyright = '2016, Markus Unterwaditzer & contributors'
author = 'Markus Unterwaditzer & contributors'
release = click_log.__version__
version = '.'.join(release.split('.')[:2]) # The short X.Y version.
exclude_patterns = ['_build']
pygments_style = 'sphinx'
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)
html_static_path = ['_static']
htmlhelp_basename = 'click-logdoc'
latex_elements = {}
latex_documents = [
(master_doc, 'click-log.tex', 'click-log Documentation',
'Markus Unterwaditzer \\& contributors', 'manual'),
]
man_pages = [
(master_doc, 'click-log', 'click-log Documentation',
[author], 1)
]
texinfo_documents = [
(master_doc, 'click-log', 'click-log Documentation',
author, 'click-log', 'One line description of project.',
'Miscellaneous'),
]
|