Adjust conf.py to remove prompt from sphinx copybutton

This commit is contained in:
Axel Donath 2025-01-31 11:58:51 -05:00
parent cadfcc7a1b
commit dd7c203b81

View File

@ -307,6 +307,10 @@ epub_exclude_files = ['search.html']
# -- Extension configuration -------------------------------------------------
# Define prompt text pattern to be removed for copybutton
# See https://sphinx-copybutton.readthedocs.io/en/latest/use.html#using-regexp-prompt-identifiers
copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
copybutton_prompt_is_regexp = True
# Tell sphinx autodoc how to render type aliases.
autodoc_typehints = "description"