aboutsummaryrefslogtreecommitdiff
path: root/docs/pkgdown.js
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2022-03-23 10:32:36 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2022-03-31 18:35:09 +0200
commitf4fcef8228ebd5a1a73bc6edc47b5efa259c2e20 (patch)
treef9e0489c8941257b5055783a443f4859212ad4f1 /docs/pkgdown.js
parent4c2b22d75cc5102ddc595ea479c46bfdb46c1016 (diff)
Use 'investr' conditionally in tests, updates
Most prominently, a README was added, giving a nice overview for the people visiting the github page, the package page on CRAN, or the online docs at pkgdown.jrwb.de. The maintainer e-mail address was also updated.
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 7e7048f..6f0eee4 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