conf   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 111
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 70
dl 0
loc 111
rs 10
c 0
b 0
f 0
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3
4
from os import getenv
5
6
from eppaurora import __version__
7
8
project = u'pyeppaurora'
9
copyright = u'2020, Stefan Bender'
10
author = u'Stefan Bender'
11
12
version = __version__
13
release = __version__
14
15
extensions = [
16
    'sphinx.ext.autodoc',
17
    'sphinx.ext.autosummary',
18
    'sphinx.ext.intersphinx',
19
    'sphinx.ext.extlinks',
20
    'sphinx.ext.todo',
21
    'sphinx.ext.coverage',
22
    'sphinx.ext.ifconfig',
23
    'sphinx.ext.viewcode',
24
    'sphinx.ext.napoleon',
25
    'sphinx.ext.mathjax',
26
    'recommonmark',
27
    'numpydoc'
28
]
29
if getenv('SPELLCHECK'):
30
    extensions += 'sphinxcontrib.spelling',
31
    spelling_show_suggestions = True
32
    spelling_lang = 'en_GB'
33
34
master_doc = 'index'
35
36
language = "en"
37
38
htmlhelp_basename = 'pyeppauroradoc'
39
40
# autodoc_docstring_signature = False
41
# autodoc_dumb_docstring = True
42
autosummary_generate = True
43
44
latex_elements = {
45
    "papersize": "a4paper",
46
    "pointsize": "11pt",
47
}
48
49
# Grouping the document tree into LaTeX files. List of tuples
50
# (source start file, target name, title,
51
#  author, documentclass [howto, manual, or own class]).
52
latex_documents = [
53
    (master_doc, 'pyeppaurora.tex', u'pyeppaurora Documentation',
54
     u'Stefan Bender', 'manual'),
55
]
56
57
# One entry per manual page. List of tuples
58
# (source start file, name, description, authors, manual section).
59
man_pages = [
60
    (master_doc, 'pyeppaurora', u'pyeppaurora Documentation',
61
     [author], 1)
62
]
63
64
# Grouping the document tree into Texinfo files. List of tuples
65
# (source start file, target name, title, author,
66
#  dir menu entry, description, category)
67
texinfo_documents = [
68
    (master_doc, 'pyeppaurora', u'pyeppaurora Documentation',
69
     author, 'pyeppaurora', 'Space weather indices for python.',
70
     'Miscellaneous'),
71
]
72
73
html_theme = "sphinx_rtd_theme"
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_path = [sphinx_rtd_theme.get_html_theme_path()]
80
81
exclude_patterns = [u'_build', 'Thumbs.db', '.DS_Store']
82
pygments_style = 'default'
83
templates_path = ['_templates']
84
html_use_smartypants = True
85
html_last_updated_fmt = '%b %d, %Y'
86
html_split_index = True
87
html_sidebars = {
88
    '**': ['searchbox.html', 'localtoc.html', 'relations.html',
89
          'globaltoc.html', 'sourcelink.html'],
90
}
91
html_short_title = '%s-%s' % (project, version)
92
html_context = dict(
93
    display_github=True,
94
    github_user="st-bender",
95
    github_repo="pyeppaurora",
96
    github_version="master",
97
    conf_py_path="/docs/",
98
)
99
# Switch to old behavior with html4, for a good display of references,
100
# as described in https://github.com/sphinx-doc/sphinx/issues/6705
101
# html4_writer = True
102
103
# If true, `todo` and `todoList` produce output, else they produce nothing.
104
todo_include_todos = True
105
# Example configuration for intersphinx: refer to the Python standard library.
106
intersphinx_mapping = {
107
    'python': ('https://docs.python.org/3/', None),
108
    'numpy': ('https://numpy.org/doc/stable/', None),
109
    'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None),
110
    'xarray': ('https://docs.xarray.dev/en/stable/', None),
111
}
112