Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"matplotlib.sphinxext.plot_directive",
"numpydoc",
"sphinx_copybutton",
"sphinx_toggleprompt",
"sphinx_design",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
Expand Down Expand Up @@ -461,6 +462,10 @@
# If false, no module index is generated.
# latex_use_modindex = True

# Configure copybutton to strip Python REPL prompts and output when copying code cells
copybutton_prompt_text = r">>> |\.\.\.:|In \[\d+\]:\n?|Out\[\d+\]:\n?"
copybutton_prompt_is_regexp = True


if include_api:
intersphinx_mapping = {
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ dependencies:
- sphinx
- sphinx-design
- sphinx-copybutton
- sphinx-toggleprompt

# static typing
- scipy-stubs
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ pytest-cython
sphinx
sphinx-design
sphinx-copybutton
sphinx-toggleprompt
scipy-stubs
types-python-dateutil
types-PyMySQL
Expand Down
Loading