Skip to content

Commit

Permalink
add docs copybutton (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle committed May 23, 2020
1 parent f96173a commit 3043cbf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions ci/requirements/rtd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ dependencies:
- numpy
- scipy
- sphinx
- sphinx-copybutton
- sphinx_rtd_theme
4 changes: 4 additions & 0 deletions docs/tephi/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
'matplotlib.sphinxext.plot_directive',
'custom_class_autodoc',
'generate_package_rst',
'sphinx_copybutton',
]

# List of packages to document
Expand Down Expand Up @@ -269,3 +270,6 @@
'numpy': ('http://docs.scipy.org/doc/numpy/', None),
'matplotlib': ('http://matplotlib.sourceforge.net/', None),
}

# Define Python input prompt to copybutton.
copybutton_prompt_text = ">>> "
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ pytest
pytest-cov
pytest-xdist
sphinx
sphinx-copybutton
sphinx_rtd_theme

0 comments on commit 3043cbf

Please sign in to comment.