X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/27c05e1e24e02c62d0c2de2a1ab0673b2c2ca653..3a2d76c7bcf39e852f3b379b76537d7847ed4225:/docs/conf.py diff --git a/docs/conf.py b/docs/conf.py index f7cf1b4..6b64543 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -210,6 +210,13 @@ epub_exclude_files = ["search.html"] 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.