conf   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 37
dl 0
loc 47
rs 10
c 0
b 0
f 0
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3
4
import os
5
6
from aacgm2 import __version__
7
8
extensions = [
9
    'sphinx.ext.autodoc',
10
    'sphinx.ext.autosummary',
11
    'sphinx.ext.todo',
12
    'sphinx.ext.coverage',
13
    'sphinx.ext.ifconfig',
14
    'sphinx.ext.viewcode',
15
    'sphinxcontrib.napoleon',
16
    'numpydoc'
17
]
18
if os.getenv('SPELLCHECK'):
19
    extensions += 'sphinxcontrib.spelling',
20
    spelling_show_suggestions = True
21
    spelling_lang = 'en_US'
22
23
source_suffix = '.rst'
24
master_doc = 'index'
25
project = u'AACGM-v2 Python library'
26
year = u'2015--2020'
27
author = u'Stefan Bender, Angeline G. Burrell, Christer van der Meeren'
28
copyright = '{0}, {1}'.format(year, author)
29
version = release = __version__
30
# on_rtd is whether we are on readthedocs.org
31
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
32
33
if not on_rtd:  # only import and set the theme if we're building docs locally
34
    import sphinx_rtd_theme
35
    html_theme = 'sphinx_rtd_theme'
36
    html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
37
38
pygments_style = 'trac'
39
templates_path = ['.']
40
html_use_smartypants = True
41
html_last_updated_fmt = '%b %d, %Y'
42
html_split_index = True
43
html_sidebars = {
44
   '**': ['searchbox.html', 'globaltoc.html', 'sourcelink.html'],
45
}
46
html_short_title = '%s-%s' % (project, version)
47