X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/47676bf5939ae5c8e670d947917bc8af4732eab6..a8f68f57fed6cd6bf585b10abd3cc84d37c2fd05:/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.