From 83cb88217068daa8b3343e23f117527a7e30642a Mon Sep 17 00:00:00 2001 From: Liang-Bo Wang Date: Fri, 15 Feb 2019 17:44:05 -0600 Subject: [PATCH] Fix copybutton to appear on all code examples --- python_docs_theme/static/copybutton.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python_docs_theme/static/copybutton.js b/python_docs_theme/static/copybutton.js index 716c9e4..f5960d2 100644 --- a/python_docs_theme/static/copybutton.js +++ b/python_docs_theme/static/copybutton.js @@ -3,7 +3,9 @@ $(document).ready(function() { * the >>> and ... prompts and the output and thus make the code * copyable. */ var div = $('.highlight-python .highlight,' + - '.highlight-python3 .highlight') + '.highlight-python3 .highlight,' + + '.highlight-pycon .highlight,' + + '.highlight-default .highlight'); var pre = div.find('pre'); // get the styles from the current theme