Skip to content

Commit 160bc2b

Browse files
Jammy2211Jammy2211
authored andcommitted
docs
1 parent 4ad08c5 commit 160bc2b

2 files changed

Lines changed: 24 additions & 6 deletions

File tree

docs/conf.py

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# documentation root, use os.path.abspath to make it absolute, like shown here.
1414
#
1515

16+
from pyprojroot import here
17+
1618
import os
1719
import sys
1820

@@ -41,11 +43,11 @@
4143
"sphinx.ext.intersphinx",
4244
"sphinx.ext.mathjax",
4345
"sphinx.ext.todo",
44-
"sphinx.ext.napoleon",
4546
"sphinx.ext.viewcode",
46-
"sphinx_autodoc_typehints", # Automatically document param types (less noise in class signature)
47+
"sphinx.ext.napoleon",
4748
"numpydoc",
48-
# External stuff
49+
"sphinx_autodoc_typehints",
50+
# external
4951
"myst_parser",
5052
"sphinx_copybutton",
5153
"sphinx_design",
@@ -80,7 +82,11 @@
8082
autosummary_generate = True
8183
autosummary_imported_members = True
8284
autodoc_member_order = "bysource"
83-
autodoc_default_flags = ["members"]
85+
autodoc_default_options = {
86+
"members": True,
87+
"undoc-members": True,
88+
"show-inheritance": True,
89+
}
8490
autodoc_class_signature = "separated"
8591
autoclass_content = "init"
8692

@@ -91,7 +97,16 @@
9197
# List of patterns, relative to source directory, that match files and
9298
# directories to ignore when looking for source files.
9399
# This pattern also affects html_static_path and html_extra_path.
94-
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
100+
exclude_patterns = [
101+
"_build",
102+
"Thumbs.db",
103+
".DS_Store",
104+
"CODE_OF_CONDUCT.md",
105+
"CONTRIBUTING.md",
106+
"CITATIONS.rst",
107+
"README.rst",
108+
"README.md",
109+
]
95110

96111

97112
# -- Options for HTML output -------------------------------------------------
@@ -132,3 +147,7 @@
132147
from sphinx.builders.html import StandaloneHTMLBuilder
133148

134149
StandaloneHTMLBuilder.supported_image_types = ["image/gif", "image/png", "image/jpeg"]
150+
151+
typehints_fully_qualified = False
152+
always_document_param_types = False
153+
typehints_document_rtype = False

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)