Skip to content

Commit 352639c

Browse files
authored
docs: strip Python prompts from copybutton output (#2547)
1 parent 8e31f29 commit 352639c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/source/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838

3939
autosectionlabel_prefix_document = True
4040

41+
copybutton_prompt_text = r"^>>> |^\.\.\. "
42+
copybutton_prompt_is_regexp = True
43+
4144
# Add any paths that contain templates here, relative to this directory.
4245
templates_path = []
4346

0 commit comments

Comments
 (0)