Skip to content

Commit

Permalink
add sphinx-copybutton configurations to exclude prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
mosc9575 authored Jul 31, 2024
1 parent 73b5578 commit 94bfb28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@
"nbsphinx",
]

# sphinx-copybutton configurations
copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.{3,}: | {5,8}: "
copybutton_prompt_is_regexp = True

exclude_patterns = [
"**.ipynb_checkpoints",
# to ensure that include files (partial pages) aren't built, exclude them
Expand Down

0 comments on commit 94bfb28

Please sign in to comment.