summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Kislyuk <kislyuk@gmail.com>2023-05-06 15:52:33 -0700
committerAndrey Kislyuk <kislyuk@gmail.com>2023-05-06 15:52:33 -0700
commite95fc2f78db2ca6a2512a640bce921be67f49bab (patch)
treee24010bbb0c9691d9333eb8961b4bcfff59318f5
parenta35e9a610ac3d26b0b44b1fb177826b4a16fdc18 (diff)
Use sphinx-copybutton
-rw-r--r--Makefile2
-rw-r--r--docs/conf.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 90cafd8..382acbd 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ init_docs:
cd docs; sphinx-quickstart
docs:
- python -m pip install furo
+ python -m pip install furo sphinx-copybutton
sphinx-build docs docs/html
install:
diff --git a/docs/conf.py b/docs/conf.py
index c372081..08b0025 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -7,7 +7,7 @@ version = ""
release = ""
language = "en"
master_doc = "index"
-extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode"]
+extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode", "sphinx_copybutton"]
source_suffix = [".rst", ".md"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
pygments_style = "sphinx"