8000 Add sphinx-copybutton · python-control/Slycot@e903744 · GitHub
[go: up one dir, main page]

Skip to content

Commit e903744

Browse files
committed
Add sphinx-copybutton
1 parent ffb0916 commit e903744

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/requirements.txt

Lines changed: 1 addition & 0 deletions
Original 8000 file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
sphinx>=7.2.6
2+
sphinx-copybutton
23
numpy
34
scipy
45
pandas

doc/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import re
2020

2121
# Get the version number for this commmit (including alpha/beta/rc tags)
22-
release = re.sub('^v', '', os.popen('git describe').read().strip())
22+
release = re.sub('^v', '', os.popen('git describe --tags').read().strip())
2323

2424
# The short X.Y.Z version
2525
version = re.sub(r'(\d+\.\d+\.\d+(.post\d+)?)(.*)', r'\1', release)
@@ -33,7 +33,7 @@
3333
'sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.napoleon',
3434
'sphinx.ext.intersphinx', 'sphinx.ext.imgmath',
3535
'sphinx.ext.autosummary', 'nbsphinx', 'numpydoc',
36-
'sphinx.ext.doctest'
36+
'sphinx.ext.doctest', 'sphinx_copybutton'
3737
]
3838
# scan documents for autosummary directives and generate stub pages for each.
3939
autosummary_generate = True

0 commit comments

Comments
 (0)
0