Skip to content

Commit

Permalink
Remove $, >>> and other prompt prefixes when code copied from the… (
Browse files Browse the repository at this point in the history
  • Loading branch information
david-lev committed Oct 6, 2023
1 parent 27c05e1 commit 3a2d76c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/conf.py
Expand Up @@ -210,6 +210,13 @@ def make_pypi_svg(version: str) -> None:

autodoc_member_order = "bysource"

# -- sphinx-copybutton configuration ----------------------------------------
copybutton_prompt_text = (
r">>> |\.\.\. |> |\$ |\# | In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
)
copybutton_prompt_is_regexp = True
copybutton_remove_prompts = True

# -- Options for intersphinx extension ---------------------------------------

# Example configuration for intersphinx: refer to the Python standard library.
Expand Down

0 comments on commit 3a2d76c

Please sign in to comment.