aboutsummaryrefslogtreecommitdiff
path: root/docs/dev/pkgdown.js
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2022-02-28 15:05:58 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2022-02-28 15:05:58 +0100
commitb3ca0aa552916b10a7d6d642138aecf744aed3de (patch)
tree6ffaa424b58b7e40cd1f4ef71b610c1f4aaeb9a0 /docs/dev/pkgdown.js
parent37bffdcfab0ca4e0de638b1a63e808b1d29d3f15 (diff)
Update docs
Diffstat (limited to 'docs/dev/pkgdown.js')
-rw-r--r--docs/dev/pkgdown.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/dev/pkgdown.js b/docs/dev/pkgdown.js
index 7e7048fa..6f0eee40 100644
--- a/docs/dev/pkgdown.js
+++ b/docs/dev/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