Skip to content

Commit 473e74d

Browse files
committed
Built site for gh-pages
1 parent 79e3a69 commit 473e74d

File tree

8 files changed

+79
-39
lines changed

8 files changed

+79
-39
lines changed

.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0cad1e99
1+
a90a98e4

index.html

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<link href="index_files/libs/quarto-html/light-border.css" rel="stylesheet">
99
<link href="index_files/libs/quarto-html/quarto-html.min.css" rel="stylesheet" data-mode="light">
1010
<link href="index_files/libs/quarto-html/quarto-syntax-highlighting-dark.css" rel="stylesheet" id="quarto-text-highlighting-styles"><meta charset="utf-8">
11-
<meta name="generator" content="quarto-1.3.450">
11+
<meta name="generator" content="quarto-1.4.549">
1212

1313
<meta name="author" content="Mickaël Canouil, Ph.D.">
1414
<title>A Title</title>
@@ -31,7 +31,7 @@
3131
}
3232
/* CSS for syntax highlighting */
3333
pre > code.sourceCode { white-space: pre; position: relative; }
34-
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
34+
pre > code.sourceCode > span { line-height: 1.25; }
3535
pre > code.sourceCode > span:empty { height: 1.2em; }
3636
.sourceCode { overflow: visible; }
3737
code.sourceCode > span { color: inherit; text-decoration: inherit; }
@@ -221,7 +221,8 @@
221221
}
222222

223223
.callout.callout-titled .callout-body > .callout-content > :last-child {
224-
margin-bottom: 0.5rem;
224+
padding-bottom: 0.5rem;
225+
margin-bottom: 0;
225226
}
226227

227228
.callout.callout-titled .callout-icon::before {
@@ -405,23 +406,23 @@ <h1 class="title">A Title</h1>
405406
</div>
406407
</div>
407408

408-
<p class="date">Saturday, the 9<sup style="font-size:65%;font-style:italic;">th</sup> of December, 2023</p>
409+
<p class="date">Saturday, the 27<sup style="font-size:65%;font-style:italic;">th</sup> of January, 2024</p>
409410
</section>
410411
<section id="introduction" class="slide level2">
411412
<h2>Introduction</h2>
412413
<h3 id="subtitle">Subtitle</h3>
413414
<p><code>some code</code> and some text.<br>
414415
A URL <a href="https://mickael.canouil.fr/">mickael.canouil.fr</a>.</p>
415416
<div class="cell">
416-
<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>
417+
<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>
417418
<div class="cell-output cell-output-stdout">
418419
<pre><code>[1] 2</code></pre>
419420
</div>
420421
</div>
421422
<div class="cell">
422-
<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>
423-
<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>
424-
<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>
423+
<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>
424+
<span id="cb3-2"><a href=""></a>y <span class="ot">&lt;-</span> x <span class="sc">+</span> <span class="dv">1</span></span>
425+
<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>
425426
<div class="cell-output cell-output-stdout">
426427
<pre><code>[1] 2</code></pre>
427428
</div>
@@ -430,8 +431,8 @@ <h3 id="subtitle">Subtitle</h3>
430431
<section id="ggplot2-with-code" class="slide level2">
431432
<h2>GGPLOT2 With <code>code</code></h2>
432433
<div class="cell">
433-
<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>
434-
<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>
434+
<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>
435+
<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>
435436

436437
</div>
437438
<img data-src="index_files/figure-revealjs/unnamed-chunk-4-1.png" width="960" class="r-stretch"></section>
@@ -446,30 +447,32 @@ <h2>New slide</h2>
446447
</section></section>
447448
<section id="about" class="title-slide slide level1 center">
448449
<h1>About</h1>
449-
<div class="quarto-layout-panel">
450+
<div class="quarto-layout-panel" data-layout="[0.38, -0.02, 0.60]">
450451
<div class="quarto-layout-row quarto-layout-valign-center">
451-
<div class="quarto-layout-cell" style="flex-basis: 38.0%;justify-content: center;">
452+
<div class="quarto-layout-cell" style="flex-basis: 38.0%;justify-content: flex-start;">
452453
<p><img src="https://github.com/mcanouil.png" class="picture"></p>
453454
</div>
454-
<div class="quarto-figure-spacer quarto-layout-cell" style="flex-basis: 2.0%;justify-content: center;">
455+
<div class="quarto-figure-spacer quarto-layout-cell" style="flex-basis: 2.0%;justify-content: flex-start;">
455456
<p>&nbsp;</p>
456457
</div>
457-
<div class="quarto-layout-cell" style="flex-basis: 60.0%;justify-content: center;">
458+
<div class="quarto-layout-cell" style="flex-basis: 60.0%;justify-content: flex-start;">
458459
<ul>
459-
<li><a href="https://mickael.canouil.fr/" style="text-decoration: none;"> mickael.canouil.fr</a></li>
460-
<li><a href="mailto:[email protected]" style="text-decoration: none;"> [email protected]</a></li>
461-
<li><a href="https://www.linkedin.com/in/mickaelcanouil/" style="text-decoration: none;"> mickaelcanouil</a></li>
462-
<li><a href="https://github.com/mcanouil/" style="text-decoration: none;"> @mcanouil</a></li>
463-
<li><a href="https://twitter.com/MickaelCanouil/" style="text-decoration: none;"> @MickaelCanouil</a></li>
464-
<li><a href="https://fosstodon.org/@MickaelCanouil/" style="text-decoration: none;"> @[email protected]</a></li>
460+
<li><a href="https://mickael.canouil.fr/" style="text-decoration: none;">{{&lt; iconify fa6-solid house-chimney-user &gt;}} mickael.canouil.fr</a></li>
461+
<li><a href="mailto:[email protected]" style="text-decoration: none;">{{&lt; iconify fa6-solid envelope &gt;}} [email protected]</a></li>
462+
<li><a href="https://www.linkedin.com/in/mickaelcanouil/" style="text-decoration: none;">{{&lt; iconify fa6-brands linkedin &gt;}} mickaelcanouil</a></li>
463+
<li><a href="https://github.com/mcanouil/" style="text-decoration: none;">{{&lt; iconify fa6-brands github &gt;}} @mcanouil</a></li>
464+
<li><a href="https://twitter.com/MickaelCanouil/" style="text-decoration: none;">{{&lt; iconify fa6-brands twitter &gt;}} @MickaelCanouil</a></li>
465+
<li><a href="https://fosstodon.org/@MickaelCanouil/" style="text-decoration: none;">{{&lt; iconify fa6-brands mastodon &gt;}} @[email protected]</a></li>
465466
</ul>
466467
</div>
467468
</div>
468469
</div>
470+
<div class="quarto-auto-generated-content">
469471
<p><img src="_extensions/mcanouil/coeos/coeos.svg" class="slide-logo"></p>
470472
<div class="footer footer-default">
471473
<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>
472474
</div>
475+
</div>
473476
</section>
474477
</div>
475478
</div>
@@ -497,7 +500,6 @@ <h1>About</h1>
497500
Reveal.initialize({
498501
'controlsAuto': true,
499502
'previewLinksAuto': false,
500-
'smaller': false,
501503
'pdfSeparateFragments': false,
502504
'autoAnimateEasing': "ease",
503505
'autoAnimateDuration': 1,
@@ -796,10 +798,9 @@ <h1>About</h1>
796798
// clear code selection
797799
e.clearSelection();
798800
});
799-
function tippyHover(el, contentFn) {
801+
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
800802
const config = {
801803
allowHTML: true,
802-
content: contentFn,
803804
maxWidth: 500,
804805
delay: 100,
805806
arrow: false,
@@ -809,8 +810,17 @@ <h1>About</h1>
809810
interactive: true,
810811
interactiveBorder: 10,
811812
theme: 'light-border',
812-
placement: 'bottom-start'
813+
placement: 'bottom-start',
813814
};
815+
if (contentFn) {
816+
config.content = contentFn;
817+
}
818+
if (onTriggerFn) {
819+
config.onTrigger = onTriggerFn;
820+
}
821+
if (onUntriggerFn) {
822+
config.onUntrigger = onUntriggerFn;
823+
}
814824
config['offset'] = [0,0];
815825
config['maxWidth'] = 700;
816826
window.tippy(el, config);

index_files/libs/quarto-html/popper.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/*# sourceMappingURL=0a6b880beb84f9b6f36107a76f82c5b1.css.map */
1+

index_files/libs/revealjs/dist/theme/quarto.css

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index_files/libs/revealjs/plugin/pdf-export/pdfexport.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ var PdfExport = ( function( _Reveal ){
101101
Reveal = _Reveal;
102102
install();
103103
};
104-
Plugin.togglePdfExport = function () {
105-
togglePdfExport();
106-
};
107104
}
108105

109106
return Plugin;

index_files/libs/revealjs/plugin/quarto-line-highlight/line-highlight.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ window.QuartoLineHighlight = function () {
3838
divSourceCode.forEach((el) => {
3939
if (el.hasAttribute(kCodeLineNumbersAttr)) {
4040
const codeLineAttr = el.getAttribute(kCodeLineNumbersAttr);
41-
el.removeAttribute("data-code-line-numbers");
41+
el.removeAttribute(kCodeLineNumbersAttr);
4242
if (handleLinesSelector(deck, codeLineAttr)) {
4343
// Only process if attr is a string to select lines to highlights
4444
// e.g "1|3,6|8-11"
@@ -165,17 +165,17 @@ window.QuartoLineHighlight = function () {
165165
if (typeof highlight.last === "number") {
166166
spanToHighlight = [].slice.call(
167167
codeBlock.querySelectorAll(
168-
":scope > span:nth-child(n+" +
168+
":scope > span:nth-of-type(n+" +
169169
highlight.first +
170-
"):nth-child(-n+" +
170+
"):nth-of-type(-n+" +
171171
highlight.last +
172172
")"
173173
)
174174
);
175175
} else if (typeof highlight.first === "number") {
176176
spanToHighlight = [].slice.call(
177177
codeBlock.querySelectorAll(
178-
":scope > span:nth-child(" + highlight.first + ")"
178+
":scope > span:nth-of-type(" + highlight.first + ")"
179179
)
180180
);
181181
}

index_files/libs/revealjs/plugin/quarto-support/support.js

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ window.QuartoSupport = function () {
44
return /print-pdf/gi.test(window.location.search);
55
}
66

7+
// helper for theme toggling
8+
function toggleBackgroundTheme(el, onDarkBackground, onLightBackground) {
9+
if (onDarkBackground) {
10+
el.classList.add('has-dark-background')
11+
} else {
12+
el.classList.remove('has-dark-background')
13+
}
14+
if (onLightBackground) {
15+
el.classList.add('has-light-background')
16+
} else {
17+
el.classList.remove('has-light-background')
18+
}
19+
}
20+
721
// implement controlsAudo
822
function controlsAuto(deck) {
923
const config = deck.getConfig();
@@ -111,8 +125,19 @@ window.QuartoSupport = function () {
111125
}
112126
}
113127

114-
// add footer text
115-
function addFooter(deck) {
128+
// tweak slide-number element
129+
function tweakSlideNumber(deck) {
130+
deck.on("slidechanged", function (ev) {
131+
const revealParent = deck.getRevealElement();
132+
const slideNumberEl = revealParent.querySelector(".slide-number");
133+
const onDarkBackground = Reveal.getSlideBackground(ev.indexh, ev.indexv).classList.contains('has-dark-background');
134+
const onLightBackground = Reveal.getSlideBackground(ev.indexh, ev.indexv).classList.contains('has-light-background');
135+
toggleBackgroundTheme(slideNumberEl, onDarkBackground, onLightBackground);
136+
})
137+
}
138+
139+
// add footer text
140+
function addFooter(deck) {
116141
const revealParent = deck.getRevealElement();
117142
const defaultFooterDiv = document.querySelector(".footer-default");
118143
if (defaultFooterDiv) {
@@ -127,13 +152,17 @@ window.QuartoSupport = function () {
127152
prevSlideFooter.remove();
128153
}
129154
const currentSlideFooter = ev.currentSlide.querySelector(".footer");
155+
const onDarkBackground = Reveal.getSlideBackground(ev.indexh, ev.indexv).classList.contains('has-dark-background')
156+
const onLightBackground = Reveal.getSlideBackground(ev.indexh, ev.indexv).classList.contains('has-light-background')
130157
if (currentSlideFooter) {
131158
defaultFooterDiv.style.display = "none";
132159
const slideFooter = currentSlideFooter.cloneNode(true);
133160
handleLinkClickEvents(deck, slideFooter);
134161
deck.getRevealElement().appendChild(slideFooter);
162+
toggleBackgroundTheme(slideFooter, onDarkBackground, onLightBackground)
135163
} else {
136164
defaultFooterDiv.style.display = "block";
165+
toggleBackgroundTheme(defaultFooterDiv, onDarkBackground, onLightBackground)
137166
}
138167
});
139168
}
@@ -280,6 +309,7 @@ window.QuartoSupport = function () {
280309
fixupForPrint(deck);
281310
applyGlobalStyles(deck);
282311
addLogoImage(deck);
312+
tweakSlideNumber(deck);
283313
addFooter(deck);
284314
addChalkboardButtons(deck);
285315
handleTabbyClicks();

0 commit comments

Comments
 (0)