Skip to content

Commit 23cc80b

Browse files
committed
display code of docstring
1 parent 9a7f952 commit 23cc80b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
"sphinx.ext.viewcode",
3838
"sphinx_gallery.gen_gallery",
3939
"matplotlib.sphinxext.plot_directive",
40-
4140
]
4241

43-
autoclass_content = 'both'
42+
# autodoc conf
43+
autoclass_content = "both"
4444

4545
sphinx_gallery_conf = {
4646
"examples_dirs": "../examples", # path to your example scripts
@@ -60,6 +60,9 @@
6060
},
6161
}
6262

63+
# matplotlib conf
64+
plot_include_source = True
65+
6366
# Add any paths that contain templates here, relative to this directory.
6467
templates_path = [".templates"]
6568

0 commit comments

Comments
 (0)