|
13 | 13 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
14 | 14 | # |
15 | 15 |
|
| 16 | +from pyprojroot import here |
| 17 | + |
16 | 18 | import os |
17 | 19 | import sys |
18 | 20 |
|
|
41 | 43 | "sphinx.ext.intersphinx", |
42 | 44 | "sphinx.ext.mathjax", |
43 | 45 | "sphinx.ext.todo", |
44 | | - "sphinx.ext.napoleon", |
45 | 46 | "sphinx.ext.viewcode", |
46 | | - "sphinx_autodoc_typehints", # Automatically document param types (less noise in class signature) |
| 47 | + "sphinx.ext.napoleon", |
47 | 48 | "numpydoc", |
48 | | - # External stuff |
| 49 | + "sphinx_autodoc_typehints", |
| 50 | + # external |
49 | 51 | "myst_parser", |
50 | 52 | "sphinx_copybutton", |
51 | 53 | "sphinx_design", |
|
80 | 82 | autosummary_generate = True |
81 | 83 | autosummary_imported_members = True |
82 | 84 | 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 | +} |
84 | 90 | autodoc_class_signature = "separated" |
85 | 91 | autoclass_content = "init" |
86 | 92 |
|
|
91 | 97 | # List of patterns, relative to source directory, that match files and |
92 | 98 | # directories to ignore when looking for source files. |
93 | 99 | # 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 | +] |
95 | 110 |
|
96 | 111 |
|
97 | 112 | # -- Options for HTML output ------------------------------------------------- |
|
132 | 147 | from sphinx.builders.html import StandaloneHTMLBuilder |
133 | 148 |
|
134 | 149 | 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 |
0 commit comments