aboutsummaryrefslogtreecommitdiff
path: root/docs/pkgdown.js
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2022-03-02 18:03:54 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2022-03-02 18:03:54 +0100
commit2bb59c88d49b193f278916ad9cc4de83c0de9604 (patch)
treef286bba254d7c5f2d32eeb2b11f6148938b0e1e1 /docs/pkgdown.js
parent351248d07f810ccb6c497633a02cd48ee35526e6 (diff)
Make tests more platform independent, update docs
Diffstat (limited to 'docs/pkgdown.js')
-rw-r--r--docs/pkgdown.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/pkgdown.js b/docs/pkgdown.js
index 7e7048fa..6f0eee40 100644
--- a/docs/pkgdown.js
+++ b/docs/pkgdown.js
@@ -80,7 +80,7 @@
$(document).ready(function() {
var copyButton = "<button type='button' class='btn btn-primary btn-copy-ex' type = 'submit' title='Copy to clipboard' aria-label='Copy to clipboard' data-toggle='tooltip' data-placement='left auto' data-trigger='hover' data-clipboard-copy><i class='fa fa-copy'></i></button>";
- $(".examples, div.sourceCode").addClass("hasCopyButton");
+ $("div.sourceCode").addClass("hasCopyButton");
// Insert copy buttons:
$(copyButton).prependTo(".hasCopyButton");
@@ -91,7 +91,7 @@
// Initialize clipboard:
var clipboardBtnCopies = new ClipboardJS('[data-clipboard-copy]', {
text: function(trigger) {
- return trigger.parentNode.textContent;
+ return trigger.parentNode.textContent.replace(/\n#>[^\n]*/g, "");
}
});

Contact - Imprint