File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ install_requires =
52
52
hieroglyph>=2.1.0
53
53
setuptools>=50
54
54
sphinx>=7.1, !=7.4.4
55
+ sphinx-copybutton
55
56
sphinx-design>=0.5.0
56
57
sphinx_rtd_theme>=1.0.0
57
58
sphinxcontrib-svg2pdfconverter
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ def generate_task_icon_modifier_rst():
57
57
sys .path .append (os .path .abspath ('ext' )) # path to custom extensions.
58
58
extensions = [
59
59
# sphinx built-in extensions
60
+ 'sphinx_copybutton' ,
60
61
'sphinx.ext.autodoc' ,
61
62
'sphinx.ext.autosummary' ,
62
63
'sphinx.ext.graphviz' ,
@@ -332,3 +333,6 @@ def generate_task_icon_modifier_rst():
332
333
# Create sentence case versions of wordlist:
333
334
sentence_case = [word .capitalize () for word in words ]
334
335
sentence_case_file .write_text ('\n ' .join (sentence_case ) + '\n ' )
336
+
337
+ # Turn off copybutton for diffs
338
+ copybutton_selector = "div:not(.highlight-diff) > div.highlight > pre"
You can’t perform that action at this time.
0 commit comments