File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ mamba create -n $CONDA_ENV_NAME --yes --quiet \
112
112
" $( get_dep sphinx-gallery $SPHINX_GALLERY_VERSION ) " \
113
113
" $( get_dep numpydoc $NUMPYDOC_VERSION ) " \
114
114
" $( get_dep sphinxcontrib-bibtex $SPHINXCONTRIB_BIBTEX_VERSION ) " \
115
+ " $( get_dep sphinx-copybutton $SPHINXCONTRIB_BIBTEX_VERSION ) " \
115
116
" $( get_dep pydata-sphinx-theme $PYDATA_SPHINX_THEME_VERSION ) " \
116
117
memory_profiler packaging seaborn pytest coverage compilers tensorflow
117
118
Original file line number Diff line number Diff line change 42
42
"numpydoc" ,
43
43
"sphinx_issues" ,
44
44
"sphinx_gallery.gen_gallery" ,
45
+ "sphinx_copybutton" ,
45
46
]
46
47
48
+ # Specify how to identify the prompt when copying code snippets
49
+ copybutton_prompt_text = r">>> |\.\.\. "
50
+ copybutton_prompt_is_regexp = True
51
+
47
52
# Add any paths that contain templates here, relative to this directory.
48
53
templates_path = ["_templates" ]
49
54
@@ -329,5 +334,4 @@ def generate_min_dependency_substitutions(app):
329
334
def setup (app ):
330
335
app .connect ("builder-inited" , generate_min_dependency_table )
331
336
app .connect ("builder-inited" , generate_min_dependency_substitutions )
332
- app .add_js_file ("js/copybutton.js" )
333
337
app .add_css_file ("basic.css" )
Original file line number Diff line number Diff line change 33
33
"mypy" : ("1.3.0" , "tests" ),
34
34
"sphinx" : ("6.0.0" , "docs" ),
35
35
"sphinx-gallery" : ("0.13.0" , "docs" ),
36
+ "sphinx-copybutton" : ("0.5.2" , "docs" ),
36
37
"numpydoc" : ("1.5.0" , "docs" ),
37
38
"sphinxcontrib-bibtex" : ("2.4.1" , "docs" ),
38
39
"pydata-sphinx-theme" : ("0.13.3" , "docs" ),
You can’t perform that action at this time.
0 commit comments