mirror of
https://github.com/ROCm/jax.git
synced 2025-04-15 19:36:06 +00:00
Adjust conf.py to remove prompt from sphinx copybutton
This commit is contained in:
parent
cadfcc7a1b
commit
dd7c203b81
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user