diff --git a/docs/sphinx/source/conf.py b/docs/sphinx/source/conf.py index faf1b2dcee..37e642c039 100644 --- a/docs/sphinx/source/conf.py +++ b/docs/sphinx/source/conf.py @@ -50,6 +50,7 @@ 'IPython.sphinxext.ipython_directive', 'IPython.sphinxext.ipython_console_highlighting', 'sphinx_gallery.gen_gallery', + 'sphinx_toggleprompt', ] napoleon_use_rtype = False # group rtype on same line together with return diff --git a/docs/sphinx/source/whatsnew/v0.8.1.rst b/docs/sphinx/source/whatsnew/v0.8.1.rst index 4028e49f79..1e5bcba48a 100644 --- a/docs/sphinx/source/whatsnew/v0.8.1.rst +++ b/docs/sphinx/source/whatsnew/v0.8.1.rst @@ -37,6 +37,7 @@ Documentation * Update sphinx to 3.1.2 and use the ``recursive`` option in ``autosummary`` class template. (:issue:`1055`, :pull:`1075`) * Add gallery example about backtracking on sloped terrain. (:pull:`1077`) +* Add toggle button for code prompts to make copying code easier (:pull:`1096`) Requirements ~~~~~~~~~~~~ @@ -49,3 +50,4 @@ Contributors * Will Holmgren (:ghuser:`wholmgren`) * Cliff Hansen (:ghuser:`cwhanse`) * Will Vining (:ghuser:`wfvining`) +* Michael Jurasovic (:ghuser:`jurasofish`) diff --git a/setup.py b/setup.py index 6aa5d80bd8..b89a3c9983 100755 --- a/setup.py +++ b/setup.py @@ -50,7 +50,8 @@ 'cftime >= 1.1.1'], 'doc': ['ipython', 'matplotlib', 'sphinx == 3.1.2', 'sphinx_rtd_theme==0.5.0', 'sphinx-gallery', 'docutils == 0.15.2', - 'pillow', 'netcdf4', 'siphon', 'tables'], + 'pillow', 'netcdf4', 'siphon', 'tables', + 'sphinx-toggleprompt >= 0.0.5'], 'test': TESTS_REQUIRE } EXTRAS_REQUIRE['all'] = sorted(set(sum(EXTRAS_REQUIRE.values(), [])))