Skip to content

Commit 7f5c5d4

Browse files
committed
docs(conf): Add copybutton_prompt_text
1 parent 71d4865 commit 7f5c5d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ def setup(app):
9292
ogp_desscription_length = about["__description__"]
9393
ogp_site_name = about["__title__"]
9494

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

97104
latex_documents = [

0 commit comments

Comments
 (0)