Skip to content

Commit

Permalink
sphinx-copybutton for docs, closes #1748
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed May 20, 2022
1 parent 18a6e05 commit 1465fea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ["sphinx.ext.extlinks", "sphinx.ext.autodoc"]
extensions = ["sphinx.ext.extlinks", "sphinx.ext.autodoc", "sphinx_copybutton"]

extlinks = {
"issue": ("https://github.com/simonw/datasette/issues/%s", "#"),
Expand Down
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ def get_version():
""",
setup_requires=["pytest-runner"],
extras_require={
"docs": ["sphinx_rtd_theme", "sphinx-autobuild", "codespell", "blacken-docs"],
"docs": [
"sphinx_rtd_theme",
"sphinx-autobuild",
"codespell",
"blacken-docs",
"sphinx-copybutton",
],
"test": [
"pytest>=5.2.2,<7.2.0",
"pytest-xdist>=2.2.1,<2.6",
Expand Down

0 comments on commit 1465fea

Please sign in to comment.