File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2
2
#
3
3
4
4
# You can set these variables from the command line.
5
- SPHINXAPIDOC = sphinx-apidoc
6
5
SPHINXOPTS = -c source
7
6
SPHINXBUILD = sphinx-build
8
7
SPHINXPROJ = kubernetes-client
17
16
18
17
# Catch-all target: route all unknown targets to Sphinx using the new
19
18
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
+
20
20
html :
21
- $(SPHINXAPIDOC ) -o " $( SOURCEDIR) " ../kubernetes_asyncio/ -e -f
22
21
$(SPHINXBUILD ) -M $@ " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
23
22
@echo " \nDocs rendered successfully, open _/build/html/index.html to view"
Original file line number Diff line number Diff line change 26
26
# Add any Sphinx extension module names here, as strings. They can be
27
27
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
28
28
extensions = [
29
+ 'autoapi.extension' ,
29
30
'sphinx.ext.autodoc' ,
30
31
# 'myst_parser',
31
32
# 'sphinx.ext.intersphinx',
32
33
]
33
34
35
+ autoapi_type = 'python'
36
+ autoapi_dirs = ['../../kubernetes_asyncio/' ]
37
+
34
38
35
39
# autodoc generation is a bit aggressive and a nuisance when doing heavy
36
40
# text edit cycles.
Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ pytest-xdist
11
11
randomize>=0.13
12
12
recommonmark
13
13
sphinx>=1.2.1,!=1.3b1,<6.2 # BSD
14
+ sphinx-autoapi
You can’t perform that action at this time.
0 commit comments