From 8fe026b48f299349d4d346653523440ad14f744f Mon Sep 17 00:00:00 2001 From: Chris Holdgraf Date: Fri, 10 Aug 2018 15:28:22 -0700 Subject: [PATCH] adding copy button --- docs/conf.py | 2 +- docs/doc-requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 docs/doc-requirements.txt diff --git a/docs/conf.py b/docs/conf.py index b60e03b..3601094 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -17,7 +17,7 @@ def setup(app): app.add_javascript("https://cdn.jsdelivr.net/npm/clipboard@1/dist/clipboard.min.js") # Enable MathJax for Math -extensions = ['sphinx.ext.mathjax'] +extensions = ['sphinx.ext.mathjax', 'sphinx_copybutton'] # The master toctree document. master_doc = 'index' diff --git a/docs/doc-requirements.txt b/docs/doc-requirements.txt new file mode 100644 index 0000000..2b3f75c --- /dev/null +++ b/docs/doc-requirements.txt @@ -0,0 +1 @@ +sphinx_copybutton