Skip to content

Commit 1844e3d

Browse files
authored
add sphinx-toggleprompt (#1096)
* add sphinx-toggleprompt * format line to long * update whatsnew * bump toggleprompt version to one that handles "Out[xx]:" * Add self to contributors
1 parent efdc8e9 commit 1844e3d

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

docs/sphinx/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
'IPython.sphinxext.ipython_directive',
5151
'IPython.sphinxext.ipython_console_highlighting',
5252
'sphinx_gallery.gen_gallery',
53+
'sphinx_toggleprompt',
5354
]
5455

5556
napoleon_use_rtype = False # group rtype on same line together with return

docs/sphinx/source/whatsnew/v0.8.1.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Documentation
3737
* Update sphinx to 3.1.2 and use the ``recursive`` option in ``autosummary`` class template.
3838
(:issue:`1055`, :pull:`1075`)
3939
* Add gallery example about backtracking on sloped terrain. (:pull:`1077`)
40+
* Add toggle button for code prompts to make copying code easier (:pull:`1096`)
4041

4142
Requirements
4243
~~~~~~~~~~~~
@@ -49,3 +50,4 @@ Contributors
4950
* Will Holmgren (:ghuser:`wholmgren`)
5051
* Cliff Hansen (:ghuser:`cwhanse`)
5152
* Will Vining (:ghuser:`wfvining`)
53+
* Michael Jurasovic (:ghuser:`jurasofish`)

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
'cftime >= 1.1.1'],
5151
'doc': ['ipython', 'matplotlib', 'sphinx == 3.1.2',
5252
'sphinx_rtd_theme==0.5.0', 'sphinx-gallery', 'docutils == 0.15.2',
53-
'pillow', 'netcdf4', 'siphon', 'tables'],
53+
'pillow', 'netcdf4', 'siphon', 'tables',
54+
'sphinx-toggleprompt >= 0.0.5'],
5455
'test': TESTS_REQUIRE
5556
}
5657
EXTRAS_REQUIRE['all'] = sorted(set(sum(EXTRAS_REQUIRE.values(), [])))

0 commit comments

Comments
 (0)