Skip to content

Commit

Permalink
Add sphinx-copybutton
Browse files Browse the repository at this point in the history
  • Loading branch information
KybernetikJo committed Apr 4, 2024
1 parent 652ed0e commit 9815526
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
sphinx>=7.2.6
sphinx-copybutton
numpy
scipy
pandas
Expand Down
4 changes: 2 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import re

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

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

0 comments on commit 9815526

Please sign in to comment.