works great, including for plain code plus prompt code
with SQL (copies only the prompt code when prompts are present).
added some styling to zzzeeksphinx
Change-Id: I1b94b0488689e875adfb90ec171e04f7e8022415
"zzzeeksphinx",
"changelog",
"sphinx_paramlinks",
+ "sphinx_copybutton",
]
needs_extensions = {"zzzeeksphinx": "1.2.1"}
# have reported this.
templates_path = [os.path.abspath("templates")]
+# https://sphinx-copybutton.readthedocs.io/en/latest/use.html#strip-and-configure-input-prompts-for-code-cells
+copybutton_prompt_text = (
+ r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
+)
+copybutton_prompt_is_regexp = True
+
nitpicky = False
# The suffix of source filenames.
git+https://github.com/sqlalchemyorg/changelog.git#egg=changelog
git+https://github.com/sqlalchemyorg/sphinx-paramlinks.git#egg=sphinx-paramlinks
git+https://github.com/sqlalchemyorg/zzzeeksphinx.git#egg=zzzeeksphinx
+sphinx-copybutton
\ No newline at end of file