diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2023-07-21 08:24:12 +0200 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2023-07-21 08:32:32 +0200 |
commit | d04bac001217855b4e9a1490a35bef3325441b55 (patch) | |
tree | 26bf1a06d038c796c2dbce21e5867088c555ee06 /docs/pkgdown.js | |
parent | 0bc79f02e99d719be5dbb96ed1591d46c8373c9f (diff) |
Maintenance prompted by email from CRAN
- Fix an improper use of 'packageVersion'
- Update .Rbuildignore
- Fix a link in the README
- Static documentation rebuilt by pkgdown::build_site()
Diffstat (limited to 'docs/pkgdown.js')
-rw-r--r-- | docs/pkgdown.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/docs/pkgdown.js b/docs/pkgdown.js index 087a762..6f0eee4 100644 --- a/docs/pkgdown.js +++ b/docs/pkgdown.js @@ -9,11 +9,6 @@ $('body').css('padding-top', $('.navbar').height() + 10); }); - $('body').scrollspy({ - target: '#sidebar', - offset: 60 - }); - $('[data-toggle="tooltip"]').tooltip(); var cur_path = paths(location.pathname); @@ -85,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"); @@ -96,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, ""); } }); |