Skip to content

Commit

Permalink
chore: bump year license (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanouil authored Jan 27, 2024
1 parent cebffc6 commit ecf5447
Show file tree
Hide file tree
Showing 9 changed files with 119 additions and 70 deletions.
5 changes: 2 additions & 3 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ website:
repo-actions: [edit, issue]
page-footer:
border: true
left: |
Powered by [Quarto](https://quarto.org).
center: |
© 2023 Mickaël CANOUIL.
© 2024 Mickaël CANOUIL.
Powered by [Quarto](https://quarto.org).
navbar:
logo: "/assets/media/quarto-extension.png"
left:
Expand Down
75 changes: 46 additions & 29 deletions docs/extensions.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.523">
<meta name="generator" content="quarto-1.5.4">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down Expand Up @@ -138,6 +138,33 @@
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js" type="text/javascript"></script>

<script type="text/javascript">
const typesetMath = (el) => {
if (window.MathJax) {
// MathJax Typeset
window.MathJax.typeset([el]);
} else if (window.katex) {
// KaTeX Render
var mathElements = el.getElementsByClassName("math");
var macros = [];
for (var i = 0; i < mathElements.length; i++) {
var texText = mathElements[i].firstChild;
if (mathElements[i].tagName == "SPAN") {
window.katex.render(texText.data, mathElements[i], {
displayMode: mathElements[i].classList.contains('display'),
throwOnError: false,
macros: macros,
fleqn: false
});
}
}
}
}
window.Quarto = {
typesetMath
};
</script>

</head>

<body class="nav-fixed">
Expand Down Expand Up @@ -2490,27 +2517,6 @@ <h5 class="quarto-listing-category-title">Categories</h5><div class="quarto-list
}
}
stripColumnClz(note)
const typesetMath = (el) => {
if (window.MathJax) {
// MathJax Typeset
window.MathJax.typeset([el]);
} else if (window.katex) {
// KaTeX Render
var mathElements = el.getElementsByClassName("math");
var macros = [];
for (var i = 0; i < mathElements.length; i++) {
var texText = mathElements[i].firstChild;
if (mathElements[i].tagName == "SPAN") {
window.katex.render(texText.data, mathElements[i], {
displayMode: mathElements[i].classList.contains('display'),
throwOnError: false,
macros: macros,
fleqn: false
});
}
}
}
}
if (id === null || id.startsWith('sec-')) {
// Special case sections, only their first couple elements
const container = document.createElement("div");
Expand All @@ -2525,10 +2531,14 @@ <h5 class="quarto-listing-category-title">Categories</h5><div class="quarto-list
break;
}
}
typesetMath(container);
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(container);
}
return container.innerHTML
} else {
typesetMath(note);
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
return note.innerHTML;
}
} else {
Expand All @@ -2537,8 +2547,15 @@ <h5 class="quarto-listing-category-title">Categories</h5><div class="quarto-list
if (anchorLink) {
anchorLink.remove();
}
typesetMath(note);
return note.innerHTML;
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
// TODO in 1.5, we should make sure this works without a callout special case
if (note.classList.contains("callout")) {
return note.outerHTML;
} else {
return note.innerHTML;
}
}
}
for (var i=0; i<xrefs.length; i++) {
Expand Down Expand Up @@ -2763,10 +2780,10 @@ <h5 class="quarto-listing-category-title">Categories</h5><div class="quarto-list
<footer class="footer">
<div class="nav-footer">
<div class="nav-footer-left">
<p>Powered by <a href="https://quarto.org">Quarto</a>.</p>
</div>
&nbsp;
</div>
<div class="nav-footer-center">
<p>© 2023 Mickaël CANOUIL.</p>
<p>© 2024 Mickaël CANOUIL. Powered by <a href="https://quarto.org">Quarto</a>.</p>
</div>
<div class="nav-footer-right">
&nbsp;
Expand Down
50 changes: 20 additions & 30 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.523">
<meta name="generator" content="quarto-1.5.4">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down Expand Up @@ -111,7 +111,7 @@
<!-- margin-sidebar -->

<!-- main -->
<div class="quarto-about-trestles">
<div class="quarto-about-trestles content">
<div class="about-entity">
<img src="assets/media/quarto-extension.png" class="about-image
rounded " style="width: 20em;">
Expand Down Expand Up @@ -351,27 +351,6 @@
}
}
stripColumnClz(note)
const typesetMath = (el) => {
if (window.MathJax) {
// MathJax Typeset
window.MathJax.typeset([el]);
} else if (window.katex) {
// KaTeX Render
var mathElements = el.getElementsByClassName("math");
var macros = [];
for (var i = 0; i < mathElements.length; i++) {
var texText = mathElements[i].firstChild;
if (mathElements[i].tagName == "SPAN") {
window.katex.render(texText.data, mathElements[i], {
displayMode: mathElements[i].classList.contains('display'),
throwOnError: false,
macros: macros,
fleqn: false
});
}
}
}
}
if (id === null || id.startsWith('sec-')) {
// Special case sections, only their first couple elements
const container = document.createElement("div");
Expand All @@ -386,10 +365,14 @@
break;
}
}
typesetMath(container);
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(container);
}
return container.innerHTML
} else {
typesetMath(note);
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
return note.innerHTML;
}
} else {
Expand All @@ -398,8 +381,15 @@
if (anchorLink) {
anchorLink.remove();
}
typesetMath(note);
return note.innerHTML;
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
// TODO in 1.5, we should make sure this works without a callout special case
if (note.classList.contains("callout")) {
return note.outerHTML;
} else {
return note.innerHTML;
}
}
}
for (var i=0; i<xrefs.length; i++) {
Expand Down Expand Up @@ -624,10 +614,10 @@
<footer class="footer">
<div class="nav-footer">
<div class="nav-footer-left">
<p>Powered by <a href="https://quarto.org">Quarto</a>.</p>
</div>
&nbsp;
</div>
<div class="nav-footer-center">
<p>© 2023 Mickaël CANOUIL.</p>
<p>© 2024 Mickaël CANOUIL. Powered by <a href="https://quarto.org">Quarto</a>.</p>
</div>
<div class="nav-footer-right">
&nbsp;
Expand Down
4 changes: 2 additions & 2 deletions docs/site_libs/bootstrap/bootstrap.min.css

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions docs/site_libs/quarto-html/quarto.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const layoutMarginEls = () => {
// Find any conflicting margin elements and add margins to the
// top to prevent overlap
const marginChildren = window.document.querySelectorAll(
".column-margin.column-container > * "
".column-margin.column-container > *, .margin-caption, .aside"
);

let lastBottom = 0;
Expand All @@ -19,7 +19,9 @@ const layoutMarginEls = () => {
marginChild.style.marginTop = null;
const top = marginChild.getBoundingClientRect().top + window.scrollY;
if (top < lastBottom) {
const margin = lastBottom - top;
const marginChildStyle = window.getComputedStyle(marginChild);
const marginBottom = parseFloat(marginChildStyle["marginBottom"]);
const margin = lastBottom - top + marginBottom;
marginChild.style.marginTop = `${margin}px`;
}
const styles = window.getComputedStyle(marginChild);
Expand Down
2 changes: 1 addition & 1 deletion docs/site_libs/quarto-listing/list.min.js

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions docs/site_libs/quarto-nav/quarto-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,45 @@ const headroomChanged = new CustomEvent("quarto-hrChanged", {
composed: false,
});

const announceDismiss = () => {
const annEl = window.document.getElementById("quarto-announcement");
if (annEl) {
annEl.remove();

const annId = annEl.getAttribute("data-announcement-id");
window.localStorage.setItem(`quarto-announce-${annId}`, "true");
}
};

const announceRegister = () => {
const annEl = window.document.getElementById("quarto-announcement");
if (annEl) {
const annId = annEl.getAttribute("data-announcement-id");
const isDismissed =
window.localStorage.getItem(`quarto-announce-${annId}`) || false;
if (isDismissed) {
announceDismiss();
return;
} else {
annEl.classList.remove("hidden");
}

const actionEl = annEl.querySelector(".quarto-announcement-action");
if (actionEl) {
actionEl.addEventListener("click", function (e) {
e.preventDefault();
// Hide the bar immediately
announceDismiss();
});
}
}
};

window.document.addEventListener("DOMContentLoaded", function () {
let init = false;

announceRegister();

// Manage the back to top button, if one is present.
let lastScrollTop = window.pageYOffset || document.documentElement.scrollTop;
const scrollDownBuffer = 5;
Expand Down
7 changes: 6 additions & 1 deletion docs/site_libs/quarto-search/quarto-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,12 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
return focusedEl.tagName.toLowerCase() === tag;
});

if (kbds && kbds.includes(key) && !isFormElFocused) {
if (
kbds &&
kbds.includes(key) &&
!isFormElFocused &&
!document.activeElement.isContentEditable
) {
event.preventDefault();
window.quartoOpenSearch();
}
Expand Down
4 changes: 2 additions & 2 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://m.canouil.dev/extensions.html</loc>
<lastmod>2023-12-09T16:03:43.508Z</lastmod>
<lastmod>2024-01-27T13:21:47.789Z</lastmod>
</url>
<url>
<loc>https://m.canouil.dev/index.html</loc>
<lastmod>2023-12-09T16:03:43.512Z</lastmod>
<lastmod>2024-01-27T13:21:47.793Z</lastmod>
</url>
</urlset>

0 comments on commit ecf5447

Please sign in to comment.