Add sphinx-copybutton back

This commit is contained in:
Jordan Cook 2022-11-06 22:43:15 -06:00
parent aaf9a27211
commit e79d57c91a
2 changed files with 6 additions and 1 deletions

View File

@ -16,6 +16,7 @@ templates_path = ['_templates']
extensions = [
'sphinx.ext.autosummary',
'sphinx.ext.extlinks',
'sphinx_copybutton',
'sphinx_design',
'myst_parser',
'notfound.extension',
@ -30,6 +31,10 @@ myst_enable_extensions = [
'smartquotes',
]
# Strip prompt text when copying code blocks with copy button
copybutton_prompt_text = r'>>> |\.\.\. |\$ '
copybutton_prompt_is_regexp = True
# HTML general settings
# html_favicon = join('../assets', 'favicon.ico')
html_css_files = [
@ -89,4 +94,3 @@ html_theme_options = {
# bg3 #665c54
# bg4 #7c6f64
# gray #928374

View File

@ -3,5 +3,6 @@ linkify-it-py>=2.0
myst-parser>=0.17
sphinx~=5.3.0
sphinx-autobuild>=2021.3
sphinx-copybutton>=0.5
sphinx-design>=0.2
sphinx-notfound-page>=0.8