Skip to content

Commit c626953

Browse files
committed
docs(conf): Add copybutton_prompt_text
1 parent 495b551 commit c626953

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/conf.py

+7
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@
9595
ogp_desscription_length = about["__description__"]
9696
ogp_site_name = about["__title__"]
9797

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

100107
latex_documents = [

0 commit comments

Comments
 (0)