Skip to content

Commit 85625b3

Browse files
authored
Set up copybutton options to exclude prompts and output (#1756)
1 parent 76c925e commit 85625b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ def __getattr__(cls, name):
139139

140140
intersphinx_mapping = {"pennylane": ("https://docs.pennylane.ai/en/stable/", None)}
141141

142+
copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
143+
copybutton_prompt_is_regexp = True
144+
142145
# add the custom MLIR Lexer
143146
lexers["mlir"] = MLIRLexer(startinline=True)
144147

0 commit comments

Comments
 (0)