Skip to content

Commit 39b5778

Browse files
committed
add copy button to doc
1 parent c106d8d commit 39b5778

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/source/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@
3131
# Add any Sphinx extension module names here, as strings. They can be
3232
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3333
# ones.
34-
extensions = ["sphinxcontrib.matlab", "sphinx.ext.autodoc"]
34+
extensions = [
35+
'sphinxcontrib.matlab',
36+
'sphinx.ext.autodoc',
37+
'sphinx_copybutton']
3538
matlab_src_dir = os.path.dirname(os.path.abspath("../../src"))
3639
primary_domain = "mat"
3740

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ Sphinx
22
sphinxcontrib-matlabdomain
33
sphinxcontrib-napoleon
44
sphinx_rtd_theme
5+
sphinx-copybutton
56
miss_hit==0.9.29

0 commit comments

Comments
 (0)