forked from rhayes777/PyAutoFit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.py
137 lines (101 loc) · 3.67 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
import datetime
# 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 --------------------------------------------------------------
# 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.
#
from pyprojroot import here
workspace_path = str(here())
import os
import sys
sys.path.insert(0, os.path.abspath("."))
clone_path = str(here())
clone_path = os.path.split(clone_path)[0]
sys.path.insert(
0,
os.path.abspath(clone_path),
)
import autofit
# -- Project information -----------------------------------------------------
year = datetime.date.today().year
project = "PyAutoFit"
copyright = "2022, James Nightingale, Richard Hayes"
author = "James Nightingale, Richard Hayes"
# The full version, including alpha/beta/rc tags
release = autofit.__version__
master_doc = "index"
# -- General configuration ---------------------------------------------------
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.extlinks",
"sphinx.ext.intersphinx",
"sphinx.ext.mathjax",
"sphinx.ext.todo",
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
"numpydoc",
# External stuff
"myst_parser",
"sphinx_copybutton",
"sphinx_design",
"sphinx_inline_tabs",
]
templates_path = ["_templates"]
# -- Options for extlinks ----------------------------------------------------
extlinks = {
"pypi": ("https://pypi.org/project/%s/", "%s"),
}
# -- Options for intersphinx -------------------------------------------------
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"sphinx": ("https://www.sphinx-doc.org/en/master", None),
}
# -- Options for TODOs -------------------------------------------------------
todo_include_todos = True
# -- Options for Markdown files ----------------------------------------------
myst_enable_extensions = [
"colon_fence",
"deflist",
]
myst_heading_anchors = 3
autosummary_generate = True
autodoc_member_order = "bysource"
autodoc_default_flags = ["members"]
autoclass_content = "both"
numpydoc_show_class_members = False
numpydoc_show_inherited_class_members = False
numpydoc_class_members_toctree = False
# 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", ".DS_Store"]
# -- Options for HTML output -------------------------------------------------
html_theme = "furo"
html_title = "PyAutoFit"
html_short_title = "PyAutoFit"
html_permalinks_icon = '<span>#</span>'
html_last_updated_fmt = "%b %d, %Y"
html_show_sourcelink = False
html_show_sphinx = True
html_show_copyright = True
# pygments_style = "sphinx"
# pygments_dark_style = "monokai"
add_function_parentheses = False
html_context = {
"menu_links_name": "Repository",
"doc_path": "docs",
"github_project": "pyautofit",
"github_repo": "pyautofit",
"github_version": "master",
}
language = "en"
html_static_path = ["_static"]
html_css_files = ["pied-piper-admonition.css"]
from sphinx.builders.html import StandaloneHTMLBuilder
StandaloneHTMLBuilder.supported_image_types = ["image/gif", "image/png", "image/jpeg"]