Skip to content

Commit

Permalink
Tweak the copybutton settings to ignore prompts.
Browse files Browse the repository at this point in the history
I still don't really know why this isn't the default.

Closes: #1246
  • Loading branch information
Julian committed Apr 21, 2024
1 parent a75362c commit 939a066
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions docs/conf.py
Expand Up @@ -123,19 +123,23 @@ def entire_domain(host):

autosectionlabel_prefix_document = True

# -- intersphinx --

intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"referencing": ("https://referencing.readthedocs.io/en/stable/", None),
}

# -- extlinks --

extlinks = {
"ujs": ("https://json-schema.org/understanding-json-schema%s", None),
}
extlinks_detect_hardcoded_links = True
# -- sphinx-copybutton --

# -- intersphinx --

intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"referencing": ("https://referencing.readthedocs.io/en/stable/", None),
}
copybutton_prompt_text = r">>> |\.\.\. |\$"
copybutton_prompt_is_regexp = True

# -- sphinxcontrib-spelling --

Expand Down

0 comments on commit 939a066

Please sign in to comment.