X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/47676bf5939ae5c8e670d947917bc8af4732eab6..bb588073ab286a9f1f8d839ab2cebe13011dd22c:/docs/conf.py?ds=inline 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.