Skip to content

Commit

Permalink
docs: limit copybutton to content area only
Browse files Browse the repository at this point in the history
[ upstream commit 6711a0c ]

Fixes copy button to not conflict with the search

Signed-off-by: Sergey Generalov <sergey@genbit.ru>
Signed-off-by: Alexandre Perrin <alex@kaworu.ch>
  • Loading branch information
genbit authored and joestringer committed Aug 28, 2020
1 parent ad25469 commit 93f4976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/_static/copybutton.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function addCopyButtonToCodeCells() {
setTimeout(addCopyButtonToCodeCells, 1000);
return;
}
var codeCells = document.querySelectorAll("pre");
var codeCells = document.querySelectorAll(".rst-content pre");
codeCells.forEach(function(codeCell, index) {
var wrapper = document.createElement("div");
wrapper.className = "code-wrapper";
Expand Down

0 comments on commit 93f4976

Please sign in to comment.