File tree 3 files changed +15
-2
lines changed
3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ author = "{{ author_name }}"
40
40
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
41
41
# ones.
42
42
extensions = [
43
+ "autodoc2",
43
44
"myst_parser",
44
45
"sphinx_copybutton",
45
46
"sphinx_inline_tabs",
46
- "sphinx.ext.autodoc",
47
47
"sphinx.ext.napoleon",
48
48
]
49
49
@@ -59,10 +59,14 @@ exclude_patterns = []
59
59
# -- MyST configuration ------------------------------------------------------
60
60
myst_heading_anchors = 3
61
61
62
+ # -- Options for autodoc2 -----------------------------------------------------
63
+ autodoc2_packages = [f"../src/{project.replace('-', '_')}"]
64
+ autodoc2_render_plugin = "myst"
65
+
66
+ # -- Options for sphinx_copybutton -----------------------------------------------------
62
67
copybutton_selector = "div.copy pre"
63
68
copybutton_prompt_text = "$ "
64
69
65
-
66
70
# -- Options for HTML output -------------------------------------------------
67
71
68
72
# The theme to use for HTML and HTML Help pages. See the documentation for
Original file line number Diff line number Diff line change 2
2
3
3
```
4
4
5
+ ```{toctree}
6
+ :hidden:
7
+ :maxdepth: 3
8
+ :caption: API Reference
9
+
10
+ apidocs/{{ module_name }}/{{ module_name }}.rst
11
+ ```
12
+
5
13
```{toctree}
6
14
:hidden:
7
15
:maxdepth: 3
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ docs = [
60
60
"myst-parser",
61
61
"sphinx",
62
62
"sphinx-autobuild",
63
+ "sphinx-autodoc2",
63
64
"sphinx-copybutton",
64
65
"sphinx-inline-tabs"
65
66
]
You can’t perform that action at this time.
0 commit comments