Skip to content

Commit

Permalink
update the way to hide prompt in nbsphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
whimian committed Jul 26, 2020
1 parent 295c4d2 commit e119c4e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,19 @@

# source_suffix = ['.rst', '.md']
# source_suffix = '.rst'
nbsphinx_prompt_width = 0

# nbsphinx_prompt_width = 0
nbsphinx_prolog = """
.. raw:: html
<style>
.nbinput .prompt,
.nboutput .prompt {
display: none;
}
</style>
"""


# The master toctree document.
master_doc = 'index'

Expand Down

0 comments on commit e119c4e

Please sign in to comment.