aboutsummaryrefslogtreecommitdiff
path: root/docs/pkgdown.js
diff options
context:
space:
mode:
authorRanke Johannes <johannes.ranke@agroscope.admin.ch>2024-01-31 13:16:17 +0100
committerRanke Johannes <johannes.ranke@agroscope.admin.ch>2024-01-31 13:27:50 +0100
commitaed160d7f0eaf5865e2bd9bf6c4b1c9d7b13d911 (patch)
tree7ca136834857c12449f50a1e086a589cc9b79e2e /docs/pkgdown.js
parent64f629efbe666bae56f48a309adf33d1eb09c358 (diff)
Reorganise data generation
- Use inst/data_generation for R code generating data as in some of my other packages - data/*.RData files were checked using https://github.com/jranke/dotfiles/blob/main/bin/rda_diff contents were not changed - Remove ChangeLog, the history is in the git logs - Update docs and some links contained therein - use \doi{} markup - Move logs to log directory
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