From 6285851743f0aca24f9fe1fc7b3fff88ce049f95 Mon Sep 17 00:00:00 2001 From: Simon Mo Date: Sat, 4 Jan 2020 19:31:49 -0600 Subject: [PATCH] Add sphinx copy button (#6694) * Add sphinx copy button * Update requirements-doc.txt Co-authored-by: Robert Nishihara --- doc/requirements-doc.txt | 11 ++++++----- doc/source/conf.py | 9 +++++++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/doc/requirements-doc.txt b/doc/requirements-doc.txt index b6af5a5d2..e0b0c7eeb 100644 --- a/doc/requirements-doc.txt +++ b/doc/requirements-doc.txt @@ -1,26 +1,27 @@ -colorama +blist click +colorama filelock +flask flatbuffers funcsigs jsonschema mock numpy opencv-python-headless +pandas pyarrow +pygments pyyaml recommonmark redis setproctitle sphinx sphinx-click +sphinx-copybutton sphinx-gallery sphinx-jsonschema sphinx_rtd_theme tabulate -pandas -flask uvicorn -pygments werkzeug -blist \ No newline at end of file diff --git a/doc/source/conf.py b/doc/source/conf.py index 7ade0c073..34c7a124f 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -72,8 +72,13 @@ sys.path.insert(0, os.path.abspath("../../python/")) # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ - 'sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx.ext.napoleon', - 'sphinx_click.ext', 'sphinx-jsonschema', 'sphinx_gallery.gen_gallery' + 'sphinx.ext.autodoc', + 'sphinx.ext.viewcode', + 'sphinx.ext.napoleon', + 'sphinx_click.ext', + 'sphinx-jsonschema', + 'sphinx_gallery.gen_gallery', + 'sphinx_copybutton', ] sphinx_gallery_conf = {