Passed
Push — master ( 465b5d...a805c7 )
by Stefan
07:01
created

conf   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 114
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 78
dl 0
loc 114
rs 10
c 0
b 0
f 0
wmc 0
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3
4
from os import getenv
5
from recommonmark.parser import CommonMarkParser
6
7
from sciapy import __version__
8
9
project = u'sciapy'
10
copyright = u'2018, Stefan Bender'
11
author = u'Stefan Bender'
12
13
version = __version__
14
release = __version__
15
16
extensions = [
17
    'sphinx.ext.autodoc',
18
    'sphinx.ext.autosummary',
19
    'sphinx.ext.intersphinx',
20
    'sphinx.ext.extlinks',
21
    'sphinx.ext.todo',
22
    'sphinx.ext.coverage',
23
    'sphinx.ext.ifconfig',
24
    'sphinx.ext.viewcode',
25
    'sphinx.ext.napoleon',
26
    'sphinx.ext.mathjax',
27
    'numpydoc'
28
]
29
if getenv('SPELLCHECK'):
30
    extensions += 'sphinxcontrib.spelling',
31
    spelling_show_suggestions = True
32
    spelling_lang = 'en_GB'
33
34
source_parsers = {
35
    '.md': CommonMarkParser,
36
}
37
source_suffix = ['.md', '.rst']
38
master_doc = 'index'
39
40
language = None
41
42
htmlhelp_basename = 'sciapydoc'
43
44
autosummary_generate = True
45
46
latex_elements = {
47
    "papersize": "a4paper",
48
    "pointsize": "11pt",
49
}
50
51
# Grouping the document tree into LaTeX files. List of tuples
52
# (source start file, target name, title,
53
#  author, documentclass [howto, manual, or own class]).
54
latex_documents = [
55
    (master_doc, 'sciapy.tex', u'sciapy Documentation',
56
     u'Stefan Bender', 'manual'),
57
]
58
59
# One entry per manual page. List of tuples
60
# (source start file, name, description, authors, manual section).
61
man_pages = [
62
    (master_doc, 'sciapy', u'sciapy Documentation',
63
     [author], 1)
64
]
65
66
# Grouping the document tree into Texinfo files. List of tuples
67
# (source start file, target name, title, author,
68
#  dir menu entry, description, category)
69
texinfo_documents = [
70
    (master_doc, 'sciapy', u'sciapy Documentation',
71
     author, 'sciapy', 'SCIAMACHY data tools.',
72
     'Miscellaneous'),
73
]
74
75
# on_rtd is whether we are on readthedocs.org
76
on_rtd = getenv("READTHEDOCS", None) == "True"
77
if not on_rtd:
78
    import sphinx_rtd_theme
79
    html_theme = "sphinx_rtd_theme"
80
    html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
81
82
exclude_patterns = [u'_build', 'Thumbs.db', '.DS_Store']
83
pygments_style = 'default'
84
templates_path = ['_templates']
85
html_use_smartypants = True
86
html_last_updated_fmt = '%b %d, %Y'
87
html_split_index = True
88
html_sidebars = {
89
    '**': ['searchbox.html', 'localtoc.html', 'relations.html',
90
          'globaltoc.html', 'sourcelink.html'],
91
}
92
html_short_title = '%s-%s' % (project, version)
93
html_context = dict(
94
    display_github=True,
95
    github_user="st-bender",
96
    github_repo="sciapy",
97
    github_version="master",
98
    conf_py_path="/docs/",
99
)
100
html_static_path = ["_static"]
101
102
# If true, `todo` and `todoList` produce output, else they produce nothing.
103
todo_include_todos = True
104
# Example configuration for intersphinx: refer to the Python standard library.
105
intersphinx_mapping = {
106
    'python': ('https://docs.python.org/3/', None),
107
    'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None),
108
    'iris': ('http://scitools.org.uk/iris/docs/latest/', None),
109
    'numpy': ('https://docs.scipy.org/doc/numpy/', None),
110
    'numba': ('https://numba.pydata.org/numba-doc/latest/', None),
111
    'matplotlib': ('https://matplotlib.org/', None),
112
    'astropy': ('http://docs.astropy.org/en/stable/', None),
113
    'xarray': ('https://xarray.pydata.org/en/stable/', None),
114
}
115