Skip to content

Commit 6487f56

Browse files
ccwang002theacodes
authored andcommitted
Fix copybutton to appear on all code examples (python#26)
1 parent 10be089 commit 6487f56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python_docs_theme/static/copybutton.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ $(document).ready(function() {
33
* the >>> and ... prompts and the output and thus make the code
44
* copyable. */
55
var div = $('.highlight-python .highlight,' +
6-
'.highlight-python3 .highlight')
6+
'.highlight-python3 .highlight,' +
7+
'.highlight-pycon .highlight,' +
8+
'.highlight-default .highlight');
79
var pre = div.find('pre');
810

911
// get the styles from the current theme

0 commit comments

Comments
 (0)