diff options
author | Ranke Johannes <johannes.ranke@agroscope.admin.ch> | 2023-11-10 18:40:34 +0100 |
---|---|---|
committer | Ranke Johannes <johannes.ranke@agroscope.admin.ch> | 2023-11-10 19:21:11 +0100 |
commit | 816de01ce642c1c3d633ffb1cbcf960036d27114 (patch) | |
tree | cf732b6e18bcc0864b481f804a1cb0b16bdd7d4d /docs/pkgdown.js | |
parent | 67384ac3c7c0b888d67d06473f81e46d520a7dd3 (diff) |
Make an RStudio project and improve the docs
Diffstat (limited to 'docs/pkgdown.js')
-rw-r--r-- | docs/pkgdown.js | 4 |
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, ""); } }); |