-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathconf.py
More file actions
170 lines (138 loc) · 5.37 KB
/
conf.py
File metadata and controls
170 lines (138 loc) · 5.37 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# Configuration file for the Sphinx documentation builder.
#
import warnings # noqa: I001
import os
from os import path
import sys
warnings.simplefilter(action='ignore', category=FutureWarning)
# -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
root = path.realpath(path.join(path.dirname(__file__), ".."))
sys.path.insert(1, root)
sys.path.append(os.path.abspath("matplotlib_ext"))
# sys.path.insert(0, os.path.abspath("."))
import okama # isort:skip # noqa: E402
# -- Project information -----------------------------------------------------
project = "okama"
copyright = "2021, MBK Development LLC"
author = "Sergey Kikevich"
# The full version, including alpha/beta/rc tags
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
# version = '%s r%s' % (pandas.__version__, svn_version())
version = okama.__version__
# The full version, including alpha/beta/rc tags.
release = version
# -- General configuration ---------------------------------------------------
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
language = "en"
# The encoding of source files.
source_encoding = "utf-8"
add_module_names = False
toc_object_entries = False
toc_object_entries_show_parents = "hide"
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
# "sphinx.ext.napoleon",
"matplotlib.sphinxext.plot_directive", # to plot matplotlib
"numpydoc", # handle NumPy documentation formatted docstrings instead of napoleon
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.doctest",
"sphinx.ext.mathjax",
"sphinx_rtd_theme",
"nbsphinx",
"nbsphinx_link",
"recommonmark",
# "myst_parser", # for markdown
]
# source_suffix = '.rst'
# source_suffix = ['.rst', '.md']
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db"]
# -- Options for HTML output -------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "sphinx_rtd_theme"
# html_theme = "pydata_sphinx_theme"
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
html_theme_options = {
# "external_links": [],
# "github_url": "https://github.com/mbk-dev/okama",
# "google_analytics_id": "UA-27880019-2",
# Toc options
"titles_only": False,
"navigation_depth": 4,
}
# If false, no module index is generated.
html_use_modindex = False
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
# html_static_path = ["_static"]
# -- Options for autodoc ------------------------------------------------
autodoc_default_flags = ["members"]
autodoc_default_options = {
"undoc-members": False,
"exclude-members": "__init__",
"inherited-members": True,
"show-inheritance": True,
}
# autodoc_inherit_docstrings = True
autodoc_typehints = "none"
autodoc_member_order = "bysource"
autoclass_content = "class" # to not insert __init__ docstrings
autodoc_class_signature = "mixed" # Display the signature with the class name.
autosummary_generate = True
autosummary_imported_members = False
# -- Options for numpydoc ------------------------------------------------
numpydoc_attributes_as_param_list = False
numpydoc_show_class_members = False
numpydoc_use_plots = True
numpydoc_class_members_toctree = True
# -- Options for nbsphinx ------------------------------------------------
nbsphinx_execute_arguments = [
"--InlineBackend.figure_formats={'svg', 'pdf'}",
"--InlineBackend.rc=figure.dpi=96",
]
# nbsphinx do not use requirejs (breaks bootstrap)
nbsphinx_requirejs_path = ""
# -- matplotlib plot directive settings (plot_directive) -----------------------------------
plot_html_show_formats = False
plot_include_source = True
plot_html_show_source_link = False
plot_formats = [("png", 90)]
plot_pre_code = """
import numpy as np
import okama as ok
"""
# # Napoleon settings
# napoleon_google_docstring = False
# napoleon_numpy_docstring = True
# napoleon_include_init_with_doc = False
# napoleon_include_private_with_doc = False
# napoleon_include_special_with_doc = False
# napoleon_use_admonition_for_examples = False
# napoleon_use_admonition_for_notes = False
# napoleon_use_admonition_for_references = False
# napoleon_use_ivar = False
# napoleon_use_param = True
# napoleon_use_rtype = True
# napoleon_type_aliases = None
# napoleon_attr_annotations = True