Skip to content

Commit 8063009

Browse files
committed
docs(conf): Add copybutton prompt config
1 parent fa34180 commit 8063009

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@
9797
ogp_desscription_length = about["__description__"]
9898
ogp_site_name = about["__title__"]
9999

100+
# sphinx-copybutton
101+
copybutton_prompt_text = r"$ |>>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
102+
copybutton_prompt_is_regexp = True
103+
copybutton_remove_prompts = True
104+
105+
100106
htmlhelp_basename = "%sdoc" % about["__title__"]
101107

102108
latex_documents = [

0 commit comments

Comments
 (0)