Skip to content

Commit 6487f56

Browse files
ccwang002theacodes
authored andcommitted
Fix copybutton to appear on all code examples (#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

Lines changed: 3 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy