Add sphinx-copybutton back
This commit is contained in:
parent
aaf9a27211
commit
e79d57c91a
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue