-
-
Notifications
You must be signed in to change notification settings - Fork 150
/
Copy pathconf.py
143 lines (113 loc) · 3.88 KB
/
conf.py
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
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
import os
import sys
import time
import pingouin
sys.path.insert(0, os.path.abspath("sphinxext"))
# -- Project information -----------------------------------------------------
project = "pingouin"
author = "Raphael Vallat"
copyright = "2018-{}, Raphael Vallat".format(time.strftime("%Y"))
# sys.path.insert(0, os.path.abspath(os.path.pardir))
version = pingouin.__version__
release = pingouin.__version__
# Sphinx-issues configuration
issues_github_path = "raphaelvallat/pingouin"
# -- General configuration ------------------------------------------------
# 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.mathjax",
"sphinx.ext.doctest",
"sphinx.ext.viewcode",
"sphinx.ext.githubpages",
"sphinx.ext.autosummary",
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"matplotlib.sphinxext.plot_directive",
"numpydoc",
"sphinx_copybutton",
"sphinx_design",
"notfound.extension",
]
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
language = "en"
# Path to templates
templates_path = ["_templates"]
# The master toctree document.
master_doc = "index"
# List of patterns, that match files and directories
# to ignore when looking for source files.
exclude_patterns = ["_build", "docstrings", "nextgen", "Thumbs.db", ".DS_Store"]
# The suffix(es) of source filenames.
source_suffix = ".rst"
# Generate the API documentation when building
autosummary_generate = True
numpydoc_show_class_members = True # FALSE ?
# Include the example source for plots in API docs
plot_include_source = True
plot_formats = [("png", 90)]
plot_html_show_formats = False
plot_html_show_source_link = False
# -- Options for HTML output ----------------------------------------------
html_theme = "pydata_sphinx_theme"
html_favicon = "pictures/pingouin_blue.svg"
html_static_path = ["_static"]
html_css_files = ["css/custom.css"]
html_show_sourcelink = True
html_copy_source = False
html_theme_options = {
"logo": {
"text": project,
"image_light": "pictures/pingouin.svg",
"image_dark": "pictures/pingouin.svg",
"alt_text": "pingouin homepage",
},
"navbar_persistent": ["search-button"],
"navbar_end": ["navbar-icon-links", "theme-switcher"],
"navbar_align": "left",
"header_links_before_dropdown": 3,
"back_to_top_button": True,
"show_prev_next": False,
"navigation_depth": 2,
"icon_links": [
{
"name": "GitHub",
"url": "https://github.com/raphaelvallat/pingouin",
"icon": "fa-brands fa-github",
},
],
"use_edit_page_button": True,
"pygments_light_style": "vs",
"pygments_dark_style": "monokai",
}
html_sidebars = {
"citing": [],
"contributing": [],
"changelog": [],
"faq": [],
"guidelines": [],
"index": [],
}
html_context = {
"github_user": "raphaelvallat",
"github_repo": "pingouin",
"github_version": "main",
"doc_path": "docs",
}
# -- Intersphinx ------------------------------------------------
intersphinx_mapping = {
"numpy": ("https://numpy.org/doc/stable/", None),
"scipy": ("https://docs.scipy.org/doc/scipy/reference/", None),
"matplotlib": ("https://matplotlib.org/", None),
"pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None),
"statsmodels": ("https://www.statsmodels.org/stable/", None),
"seaborn": ("https://seaborn.pydata.org/", None),
"sklearn": ("https://scikit-learn.org/stable", None),
}