Skip to content

Commit

Permalink
add sphinx-toggleprompt (pvlib#1096)
Browse files Browse the repository at this point in the history
* add sphinx-toggleprompt

* format line to long

* update whatsnew

* bump toggleprompt version to one that handles "Out[xx]:"

* Add self to contributors
  • Loading branch information
jurasofish authored Nov 30, 2020
1 parent efdc8e9 commit 1844e3d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/sphinx/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/sphinx/source/whatsnew/v0.8.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
~~~~~~~~~~~~
Expand All @@ -49,3 +50,4 @@ Contributors
* Will Holmgren (:ghuser:`wholmgren`)
* Cliff Hansen (:ghuser:`cwhanse`)
* Will Vining (:ghuser:`wfvining`)
* Michael Jurasovic (:ghuser:`jurasofish`)
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(), [])))
Expand Down

0 comments on commit 1844e3d

Please sign in to comment.