|
56 | 56 | "sphinx.ext.intersphinx", |
57 | 57 | "sphinx_design", |
58 | 58 | "sphinxcontrib.bibtex", |
59 | | - "override_pst_pagetoc", # local, see sphinxext folder |
60 | | - "adapt_autodoc_docstring", # local, see sphinxext folder |
61 | 59 | ] |
62 | 60 |
|
| 61 | +if not current.startswith("v1."): |
| 62 | + extensions.extend( |
| 63 | + [ |
| 64 | + "override_pst_pagetoc", # local, see sphinxext folder |
| 65 | + "adapt_autodoc_docstring", # local, see sphinxext folder |
| 66 | + ] |
| 67 | + ) |
| 68 | + |
63 | 69 | intersphinx_mapping = { |
64 | 70 | "python": ("https://docs.python.org/3", None), |
65 | 71 | "numpy": ("https://numpy.org/doc/stable", None), |
|
99 | 105 | # Options for autodoc and autosummary |
100 | 106 | # do not ignore __all__, use it to determine public members |
101 | 107 | autosummary_ignore_module_all = False |
102 | | -# include imported members in autosummary |
103 | 108 | autosummary_imported_members = False |
104 | 109 | # selects content to insert into the main body of an autoclass directive. |
105 | 110 | autoclass_content = "both" |
106 | 111 |
|
| 112 | +if current.startswith("v1."): |
| 113 | + autodoc_default_options = { |
| 114 | + "members": True, |
| 115 | + "undoc-members": True, |
| 116 | + "imported-members": False, |
| 117 | + "inherited-members": True, |
| 118 | + "show-inheritance": True, |
| 119 | + "special-members": "__call__", |
| 120 | + "memberorder": "bysource", |
| 121 | + } |
| 122 | + |
107 | 123 | # -- Options for HTML output ------------------------------------------------- |
108 | 124 |
|
109 | 125 | # The theme to use for HTML and HTML Help pages. See the documentation for |
|
0 commit comments