]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
add sphinx_copybutton
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 14 Mar 2022 19:33:15 +0000 (15:33 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 14 Mar 2022 19:33:15 +0000 (15:33 -0400)
Change-Id: I14471e98a876982b4fcfdfab35c3150ab0b18bde

docs/build/conf.py
docs/build/requirements.txt

index c39e5b227f4216644f02a21dbf1214f27ea35e87..dd9846225ff92fe8da5811f1659b98b0ef8b3125 100644 (file)
@@ -38,8 +38,15 @@ extensions = [
     "sphinx.ext.intersphinx",
     "changelog",
     "sphinx_paramlinks",
+    "sphinx_copybutton",
 ]
 
+copybutton_prompt_text = (
+    r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
+)
+copybutton_prompt_is_regexp = True
+
+
 # tags to sort on inside of sections
 changelog_sections = [
     "changed",
index 81db1119f06933ee70d263ab31eb76bdef5a3098..2d7081c07de4a78c9dd803018d79ddff46239eea 100644 (file)
@@ -5,4 +5,5 @@ python-dateutil
 # because there's a dependency in pyfiles.py
 Mako
 importlib-metadata;python_version<"3.8"
-importlib-resources;python_version<"3.9"
\ No newline at end of file
+importlib-resources;python_version<"3.9"
+sphinx_copybutton