Skip to content

Commit

Permalink
Ran workflowr::wflow_publish("smallsim_hard.Rmd").
Browse files Browse the repository at this point in the history
  • Loading branch information
pcarbo committed Jun 24, 2024
1 parent 4e9dfbe commit 8759fe2
Show file tree
Hide file tree
Showing 6 changed files with 852 additions and 2 deletions.
Binary file added docs/figure/smallsim_hard.Rmd/compare-fits-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figure/smallsim_hard.Rmd/fit-models-2-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions docs/site_libs/header-attrs-2.26/header-attrs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Pandoc 2.9 adds attributes on both header and div. We remove the former (to
// be compatible with the behavior of Pandoc < 2.8).
document.addEventListener('DOMContentLoaded', function(e) {
var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
var i, h, a;
for (i = 0; i < hs.length; i++) {
h = hs[i];
if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6
a = h.attributes;
while (a.length > 0) h.removeAttribute(a[0].name);
}
});
9 changes: 9 additions & 0 deletions docs/site_libs/navigation-1.1/codefolding-lua.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
detaiks.chunk-details > summary.chunk-summary {
text-align: right;
}
details.chunk-details[open] > summary.chunk-summary::after {
content: "Hide";
}
details.chunk-details[open] > summary.chunk-summary > span.chunk-summary-text {
display: none;
}
8 changes: 6 additions & 2 deletions docs/site_libs/navigation-1.1/codefolding.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ window.initializeCodeFolding = function(show) {
// select all R code blocks
var rCodeBlocks = $('pre.r, pre.python, pre.bash, pre.sql, pre.cpp, pre.stan, pre.julia, pre.foldable');
rCodeBlocks.each(function() {
// skip if the block has fold-none class
if ($(this).hasClass('fold-none')) return;

// create a collapsable div to wrap the code in
var div = $('<div class="collapse r-code-collapse"></div>');
Expand All @@ -29,12 +31,14 @@ window.initializeCodeFolding = function(show) {
$(this).detach().appendTo(div);

// add a show code button right above
var showCodeText = $('<span>' + (showThis ? 'Hide' : 'Code') + '</span>');
var showCodeText = $('<span>' + (showThis ? 'Hide' : 'Show') + '</span>');
var showCodeButton = $('<button type="button" class="btn btn-default btn-xs btn-secondary btn-sm code-folding-btn pull-right float-right"></button>');
showCodeButton.append(showCodeText);
showCodeButton
.attr('data-toggle', 'collapse')
.attr('data-bs-toggle', 'collapse') // BS5
.attr('data-target', '#' + id)
.attr('data-bs-target', '#' + id) // BS5
.attr('aria-expanded', showThis)
.attr('aria-controls', id);

Expand All @@ -53,7 +57,7 @@ window.initializeCodeFolding = function(show) {
// * Change text
// * add a class for intermediate states styling
div.on('hide.bs.collapse', function () {
showCodeText.text('Code');
showCodeText.text('Show');
showCodeButton.addClass('btn-collapsing');
});
div.on('hidden.bs.collapse', function () {
Expand Down
Loading

0 comments on commit 8759fe2

Please sign in to comment.