Skip to content

Commit ccc7eec

Browse files
committed
improve configuration of copy-button
1 parent 2168deb commit ccc7eec

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

doc/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,3 +252,7 @@ def linkcode_resolve(domain: str, info: dict[str, str]) -> Optional[str]:
252252
linkcheck_timeout = 15 # some can be quite slow
253253
linkcheck_retries = 3
254254
linkcheck_ignore = [] # will be compiled to regex
255+
256+
# -- sphinx_copybutton -----------------------------------------------------------------
257+
copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
258+
copybutton_prompt_is_regexp = True

0 commit comments

Comments
 (0)