Skip to content

Commit db6fe22

Browse files
committed
Reverted previous JS additions
1 parent b6e757f commit db6fe22

File tree

2 files changed

+3
-48
lines changed

2 files changed

+3
-48
lines changed

doc/source/_static/js/custom-copy.js

Lines changed: 0 additions & 43 deletions
This file was deleted.

doc/source/conf.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -466,12 +466,10 @@
466466
# If false, no module index is generated.
467467
# latex_use_modindex = True
468468

469-
# Configure copybutton to strip Python REPL prompts and output when copying
470-
toggleprompt_prompt_text = r">>> |\.\.\.:|In \[\d+\]:|Out\[\d+\]:"
471-
toggleprompt_is_regexp = True
469+
# Configure copybutton to strip Python REPL prompts and output when copying code cells
470+
copybutton_prompt_text = r">>> |\.\.\.:|In \[\d+\]:\n?|Out\[\d+\]:\n?"
471+
copybutton_prompt_is_regexp = True
472472

473-
copybutton_prompt_text = ''
474-
copybutton_is_regexp = False
475473

476474
if include_api:
477475
intersphinx_mapping = {

0 commit comments

Comments
 (0)