|
14 | 14 | from sphinx.util.docutils import SphinxDirective |
15 | 15 |
|
16 | 16 | author = "dynamicslab" |
17 | | -project = "pysindy" # package name |
18 | | - |
19 | | - |
20 | | -# no need to edit below this line |
21 | | - |
| 17 | +project = "pysindy" |
22 | 18 | copyright = f"2020, {author}" |
23 | | - |
24 | 19 | module = importlib.import_module(project) |
25 | 20 | version = release = getattr(module, "__version__") |
26 | 21 |
|
27 | 22 | master_doc = "index" |
28 | 23 |
|
29 | 24 | extensions = [ |
30 | | - "nbsphinx", |
31 | | - "sphinxcontrib.apidoc", |
32 | 25 | "sphinx.ext.autodoc", |
33 | | - "sphinx.ext.todo", |
34 | | - "sphinx.ext.viewcode", |
35 | 26 | "sphinx.ext.autosummary", |
| 27 | + "nbsphinx", |
| 28 | + "sphinx.ext.todo", |
36 | 29 | "sphinx.ext.napoleon", |
| 30 | + "sphinx.ext.viewcode", |
37 | 31 | "sphinx.ext.mathjax", |
38 | 32 | "sphinx.ext.intersphinx", |
39 | 33 | "IPython.sphinxext.ipython_console_highlighting", |
40 | 34 | ] |
41 | 35 |
|
42 | 36 | nb_execution_mode = "off" |
43 | 37 |
|
44 | | -apidoc_module_dir = f"../{project}" |
45 | | -apidoc_excluded_paths = ["tests"] |
46 | | -apidoc_toc_file = False |
| 38 | +templates_path = ["templates"] |
| 39 | +autosummary_generate = True |
| 40 | +autosummary_ignore_module_all = False |
47 | 41 |
|
48 | | -autodoc_default_options = {"members": True} |
49 | | -autodoc_member_order = "bysource" |
50 | | -autoclass_content = "init" |
| 42 | +autoclass_content = "both" |
51 | 43 |
|
52 | 44 | language = "en" |
53 | 45 |
|
|
69 | 61 | html_sourcelink_suffix = "" |
70 | 62 |
|
71 | 63 | intersphinx_mapping = { |
72 | | - "derivative": ("https://derivative.readthedocs.io/en/latest/", None), |
73 | | - "sklearn": ("https://scikit-learn.org/stable/", None), |
| 64 | + "derivative": ("https://derivative.readthedocs.io/en/latest", None), |
| 65 | + "sklearn": ("https://scikit-learn.org/stable", None), |
| 66 | + "numpy": ("https://numpy.org/doc/stable", None), |
74 | 67 | } |
75 | 68 |
|
| 69 | +show_warning_types = True |
| 70 | +suppress_warnings = [ |
| 71 | + "ref.python", |
| 72 | + "ref.exc", |
| 73 | + "ref.class", |
| 74 | + "ref.obj", |
| 75 | + "ref.meth", |
| 76 | + "ref.any", |
| 77 | + "ref", |
| 78 | +] |
| 79 | + |
76 | 80 | # -- Extensions to the Napoleon GoogleDocstring class --------------------- |
77 | 81 | # michaelgoerz.net/notes/extending-sphinx-napoleon-docstring-sections.html |
78 | 82 | from sphinx.ext.napoleon.docstring import GoogleDocstring # noqa: E402 |
|
0 commit comments