Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanouil committed Jan 27, 2024
1 parent 79e3a69 commit 473e74d
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0cad1e99
a90a98e4
58 changes: 34 additions & 24 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link href="index_files/libs/quarto-html/light-border.css" rel="stylesheet">
<link href="index_files/libs/quarto-html/quarto-html.min.css" rel="stylesheet" data-mode="light">
<link href="index_files/libs/quarto-html/quarto-syntax-highlighting-dark.css" rel="stylesheet" id="quarto-text-highlighting-styles"><meta charset="utf-8">
<meta name="generator" content="quarto-1.3.450">
<meta name="generator" content="quarto-1.4.549">

<meta name="author" content="Mickaël Canouil, Ph.D.">
<title>A Title</title>
Expand All @@ -31,7 +31,7 @@
}
/* CSS for syntax highlighting */
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span { line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
Expand Down Expand Up @@ -221,7 +221,8 @@
}

.callout.callout-titled .callout-body > .callout-content > :last-child {
margin-bottom: 0.5rem;
padding-bottom: 0.5rem;
margin-bottom: 0;
}

.callout.callout-titled .callout-icon::before {
Expand Down Expand Up @@ -405,23 +406,23 @@ <h1 class="title">A Title</h1>
</div>
</div>

<p class="date">Saturday, the 9<sup style="font-size:65%;font-style:italic;">th</sup> of December, 2023</p>
<p class="date">Saturday, the 27<sup style="font-size:65%;font-style:italic;">th</sup> of January, 2024</p>
</section>
<section id="introduction" class="slide level2">
<h2>Introduction</h2>
<h3 id="subtitle">Subtitle</h3>
<p><code>some code</code> and some text.<br>
A URL <a href="https://mickael.canouil.fr/">mickael.canouil.fr</a>.</p>
<div class="cell">
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1"></a><span class="dv">1</span> <span class="sc">+</span> <span class="dv">1</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb1-1"><a href=""></a><span class="dv">1</span> <span class="sc">+</span> <span class="dv">1</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>[1] 2</code></pre>
</div>
</div>
<div class="cell">
<div class="sourceCode cell-code" id="cb3"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb3-1"><a href="#cb3-1"></a>x <span class="ot">&lt;-</span> <span class="dv">1</span></span>
<span id="cb3-2"><a href="#cb3-2"></a>y <span class="ot">&lt;-</span> x <span class="sc">+</span> <span class="dv">1</span></span>
<span id="cb3-3"><a href="#cb3-3"></a>y</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="sourceCode cell-code" id="cb3"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb3-1"><a href=""></a>x <span class="ot">&lt;-</span> <span class="dv">1</span></span>
<span id="cb3-2"><a href=""></a>y <span class="ot">&lt;-</span> x <span class="sc">+</span> <span class="dv">1</span></span>
<span id="cb3-3"><a href=""></a>y</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>[1] 2</code></pre>
</div>
Expand All @@ -430,8 +431,8 @@ <h3 id="subtitle">Subtitle</h3>
<section id="ggplot2-with-code" class="slide level2">
<h2>GGPLOT2 With <code>code</code></h2>
<div class="cell">
<div class="sourceCode cell-code" id="cb5"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb5-1"><a href="#cb5-1"></a><span class="fu">library</span>(ggplot2)</span>
<span id="cb5-2"><a href="#cb5-2"></a><span class="fu">ggplot</span>(mtcars, <span class="fu">aes</span>(wt, mpg)) <span class="sc">+</span> <span class="fu">geom_point</span>()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="sourceCode cell-code" id="cb5"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb5-1"><a href=""></a><span class="fu">library</span>(ggplot2)</span>
<span id="cb5-2"><a href=""></a><span class="fu">ggplot</span>(mtcars, <span class="fu">aes</span>(wt, mpg)) <span class="sc">+</span> <span class="fu">geom_point</span>()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>

</div>
<img data-src="index_files/figure-revealjs/unnamed-chunk-4-1.png" width="960" class="r-stretch"></section>
Expand All @@ -446,30 +447,32 @@ <h2>New slide</h2>
</section></section>
<section id="about" class="title-slide slide level1 center">
<h1>About</h1>
<div class="quarto-layout-panel">
<div class="quarto-layout-panel" data-layout="[0.38, -0.02, 0.60]">
<div class="quarto-layout-row quarto-layout-valign-center">
<div class="quarto-layout-cell" style="flex-basis: 38.0%;justify-content: center;">
<div class="quarto-layout-cell" style="flex-basis: 38.0%;justify-content: flex-start;">
<p><img src="https://github.com/mcanouil.png" class="picture"></p>
</div>
<div class="quarto-figure-spacer quarto-layout-cell" style="flex-basis: 2.0%;justify-content: center;">
<div class="quarto-figure-spacer quarto-layout-cell" style="flex-basis: 2.0%;justify-content: flex-start;">
<p>&nbsp;</p>
</div>
<div class="quarto-layout-cell" style="flex-basis: 60.0%;justify-content: center;">
<div class="quarto-layout-cell" style="flex-basis: 60.0%;justify-content: flex-start;">
<ul>
<li><a href="https://mickael.canouil.fr/" style="text-decoration: none;"> mickael.canouil.fr</a></li>
<li><a href="mailto:[email protected]" style="text-decoration: none;"> [email protected]</a></li>
<li><a href="https://www.linkedin.com/in/mickaelcanouil/" style="text-decoration: none;"> mickaelcanouil</a></li>
<li><a href="https://github.com/mcanouil/" style="text-decoration: none;"> @mcanouil</a></li>
<li><a href="https://twitter.com/MickaelCanouil/" style="text-decoration: none;"> @MickaelCanouil</a></li>
<li><a href="https://fosstodon.org/@MickaelCanouil/" style="text-decoration: none;"> @[email protected]</a></li>
<li><a href="https://mickael.canouil.fr/" style="text-decoration: none;">{{&lt; iconify fa6-solid house-chimney-user &gt;}} mickael.canouil.fr</a></li>
<li><a href="mailto:[email protected]" style="text-decoration: none;">{{&lt; iconify fa6-solid envelope &gt;}} [email protected]</a></li>
<li><a href="https://www.linkedin.com/in/mickaelcanouil/" style="text-decoration: none;">{{&lt; iconify fa6-brands linkedin &gt;}} mickaelcanouil</a></li>
<li><a href="https://github.com/mcanouil/" style="text-decoration: none;">{{&lt; iconify fa6-brands github &gt;}} @mcanouil</a></li>
<li><a href="https://twitter.com/MickaelCanouil/" style="text-decoration: none;">{{&lt; iconify fa6-brands twitter &gt;}} @MickaelCanouil</a></li>
<li><a href="https://fosstodon.org/@MickaelCanouil/" style="text-decoration: none;">{{&lt; iconify fa6-brands mastodon &gt;}} @[email protected]</a></li>
</ul>
</div>
</div>
</div>
<div class="quarto-auto-generated-content">
<p><img src="_extensions/mcanouil/coeos/coeos.svg" class="slide-logo"></p>
<div class="footer footer-default">
<p><a href="https://mickael.canouil.fr/">mickael.canouil.fr</a> | <a href="https://creativecommons.org/licenses/by-sa/4.0/">License: CC-BY-SA-4.0</a></p>
</div>
</div>
</section>
</div>
</div>
Expand Down Expand Up @@ -497,7 +500,6 @@ <h1>About</h1>
Reveal.initialize({
'controlsAuto': true,
'previewLinksAuto': false,
'smaller': false,
'pdfSeparateFragments': false,
'autoAnimateEasing': "ease",
'autoAnimateDuration': 1,
Expand Down Expand Up @@ -796,10 +798,9 @@ <h1>About</h1>
// clear code selection
e.clearSelection();
});
function tippyHover(el, contentFn) {
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
const config = {
allowHTML: true,
content: contentFn,
maxWidth: 500,
delay: 100,
arrow: false,
Expand All @@ -809,8 +810,17 @@ <h1>About</h1>
interactive: true,
interactiveBorder: 10,
theme: 'light-border',
placement: 'bottom-start'
placement: 'bottom-start',
};
if (contentFn) {
config.content = contentFn;
}
if (onTriggerFn) {
config.onTrigger = onTriggerFn;
}
if (onUntriggerFn) {
config.onUntrigger = onUntriggerFn;
}
config['offset'] = [0,0];
config['maxWidth'] = 700;
window.tippy(el, config);
Expand Down
4 changes: 2 additions & 2 deletions index_files/libs/quarto-html/popper.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index_files/libs/quarto-html/quarto-html.min.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/*# sourceMappingURL=0a6b880beb84f9b6f36107a76f82c5b1.css.map */

7 changes: 5 additions & 2 deletions index_files/libs/revealjs/dist/theme/quarto.css

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions index_files/libs/revealjs/plugin/pdf-export/pdfexport.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ var PdfExport = ( function( _Reveal ){
Reveal = _Reveal;
install();
};
Plugin.togglePdfExport = function () {
togglePdfExport();
};
}

return Plugin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ window.QuartoLineHighlight = function () {
divSourceCode.forEach((el) => {
if (el.hasAttribute(kCodeLineNumbersAttr)) {
const codeLineAttr = el.getAttribute(kCodeLineNumbersAttr);
el.removeAttribute("data-code-line-numbers");
el.removeAttribute(kCodeLineNumbersAttr);
if (handleLinesSelector(deck, codeLineAttr)) {
// Only process if attr is a string to select lines to highlights
// e.g "1|3,6|8-11"
Expand Down Expand Up @@ -165,17 +165,17 @@ window.QuartoLineHighlight = function () {
if (typeof highlight.last === "number") {
spanToHighlight = [].slice.call(
codeBlock.querySelectorAll(
":scope > span:nth-child(n+" +
":scope > span:nth-of-type(n+" +
highlight.first +
"):nth-child(-n+" +
"):nth-of-type(-n+" +
highlight.last +
")"
)
);
} else if (typeof highlight.first === "number") {
spanToHighlight = [].slice.call(
codeBlock.querySelectorAll(
":scope > span:nth-child(" + highlight.first + ")"
":scope > span:nth-of-type(" + highlight.first + ")"
)
);
}
Expand Down
34 changes: 32 additions & 2 deletions index_files/libs/revealjs/plugin/quarto-support/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ window.QuartoSupport = function () {
return /print-pdf/gi.test(window.location.search);
}

// helper for theme toggling
function toggleBackgroundTheme(el, onDarkBackground, onLightBackground) {
if (onDarkBackground) {
el.classList.add('has-dark-background')
} else {
el.classList.remove('has-dark-background')
}
if (onLightBackground) {
el.classList.add('has-light-background')
} else {
el.classList.remove('has-light-background')
}
}

// implement controlsAudo
function controlsAuto(deck) {
const config = deck.getConfig();
Expand Down Expand Up @@ -111,8 +125,19 @@ window.QuartoSupport = function () {
}
}

// add footer text
function addFooter(deck) {
// tweak slide-number element
function tweakSlideNumber(deck) {
deck.on("slidechanged", function (ev) {
const revealParent = deck.getRevealElement();
const slideNumberEl = revealParent.querySelector(".slide-number");
const onDarkBackground = Reveal.getSlideBackground(ev.indexh, ev.indexv).classList.contains('has-dark-background');
const onLightBackground = Reveal.getSlideBackground(ev.indexh, ev.indexv).classList.contains('has-light-background');
toggleBackgroundTheme(slideNumberEl, onDarkBackground, onLightBackground);
})
}

// add footer text
function addFooter(deck) {
const revealParent = deck.getRevealElement();
const defaultFooterDiv = document.querySelector(".footer-default");
if (defaultFooterDiv) {
Expand All @@ -127,13 +152,17 @@ window.QuartoSupport = function () {
prevSlideFooter.remove();
}
const currentSlideFooter = ev.currentSlide.querySelector(".footer");
const onDarkBackground = Reveal.getSlideBackground(ev.indexh, ev.indexv).classList.contains('has-dark-background')
const onLightBackground = Reveal.getSlideBackground(ev.indexh, ev.indexv).classList.contains('has-light-background')
if (currentSlideFooter) {
defaultFooterDiv.style.display = "none";
const slideFooter = currentSlideFooter.cloneNode(true);
handleLinkClickEvents(deck, slideFooter);
deck.getRevealElement().appendChild(slideFooter);
toggleBackgroundTheme(slideFooter, onDarkBackground, onLightBackground)
} else {
defaultFooterDiv.style.display = "block";
toggleBackgroundTheme(defaultFooterDiv, onDarkBackground, onLightBackground)
}
});
}
Expand Down Expand Up @@ -280,6 +309,7 @@ window.QuartoSupport = function () {
fixupForPrint(deck);
applyGlobalStyles(deck);
addLogoImage(deck);
tweakSlideNumber(deck);
addFooter(deck);
addChalkboardButtons(deck);
handleTabbyClicks();
Expand Down

0 comments on commit 473e74d

Please sign in to comment.