We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3b6c46 commit f4c1ac4Copy full SHA for f4c1ac4
2 files changed
requirements.txt
@@ -2,4 +2,5 @@ sphinx==4.0.3
2
sphinx-autobuild==0.7.1
3
sphinx-inline-tabs==2021.4.11b9
4
python-docs-theme==2021.5
5
+sphinx-copybutton==0.4.0
6
git+https://github.com/pypa/pypa-docs-theme.git#egg=pypa-docs-theme
source/conf.py
@@ -35,8 +35,13 @@
35
'sphinx.ext.intersphinx',
36
'sphinx.ext.todo',
37
'sphinx_inline_tabs',
38
+ 'sphinx_copybutton',
39
]
40
41
+# config for copy button
42
+copybutton_prompt_text = r">>> |\.\.\. "
43
+copybutton_prompt_is_regexp = True
44
+
45
# Add any paths that contain templates here, relative to this directory.
46
templates_path = ['_templates']
47
0 commit comments