Skip to content

Commit 94bfb28

Browse files
authored
add sphinx-copybutton configurations to exclude prompts
1 parent 73b5578 commit 94bfb28

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/source/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@
7171
"nbsphinx",
7272
]
7373

74+
# sphinx-copybutton configurations
75+
copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.{3,}: | {5,8}: "
76+
copybutton_prompt_is_regexp = True
77+
7478
exclude_patterns = [
7579
"**.ipynb_checkpoints",
7680
# to ensure that include files (partial pages) aren't built, exclude them

0 commit comments

Comments
 (0)