From 10f6158a074695daec18e1c7cb860ac208ea023c Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Fri, 6 Oct 2023 00:15:30 -0400 Subject: [PATCH] Enable sphinx-copybutton extension --- .github/workflows/main.yml | 2 +- doc/sphinx/conf.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c3da29c33..0594b5a57 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -326,7 +326,7 @@ jobs: python3 -m pip install ruamel.yaml scons numpy cython 'sphinx>=5.3.0' \ sphinxcontrib-matlabdomain sphinxcontrib-doxylink sphinxcontrib-bibtex \ pydata-sphinx-theme==0.14.1 sphinx-argparse sphinx_design myst-nb \ - matplotlib pandas scipy pint + sphinx-copybutton matplotlib pandas scipy pint python3 -m pip install "git+https://github.com/sphinx-gallery/sphinx-gallery.git@master" python3 -m pip install "git+https://github.com/Cantera/sphinx-tags.git@main" - name: Build Cantera diff --git a/doc/sphinx/conf.py b/doc/sphinx/conf.py index f01a96483..30ea52e0a 100644 --- a/doc/sphinx/conf.py +++ b/doc/sphinx/conf.py @@ -48,6 +48,7 @@ extensions = [ 'sphinx_gallery.gen_gallery', 'sphinx_tags', 'sphinx_design', + 'sphinx_copybutton', ] sphinx_gallery_conf = {