mirror of
https://github.com/wilsonfreitas/awesome-quant.git
synced 2026-08-25 18:08:05 +00:00
deploy: 122c6f0edf
This commit is contained in:
+50
-17
@@ -2,12 +2,12 @@
|
|||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="generator" content="quarto-1.4.550">
|
<meta name="generator" content="quarto-1.5.56">
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
|
|
||||||
|
|
||||||
<title>Awesome Quant - Contributor Covenant Code of Conduct</title>
|
<title>Contributor Covenant Code of Conduct – Awesome Quant</title>
|
||||||
<style>
|
<style>
|
||||||
code{white-space: pre-wrap;}
|
code{white-space: pre-wrap;}
|
||||||
span.smallcaps{font-variant: small-caps;}
|
span.smallcaps{font-variant: small-caps;}
|
||||||
@@ -84,7 +84,7 @@ ul.task-list li input[type="checkbox"] {
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="quarto-search" class="" title="Search"></div>
|
<div id="quarto-search" class="" title="Search"></div>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||||
@@ -103,7 +103,7 @@ ul.task-list li input[type="checkbox"] {
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div> <!-- /navcollapse -->
|
</div> <!-- /navcollapse -->
|
||||||
<div class="quarto-navbar-tools">
|
<div class="quarto-navbar-tools">
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- /container-fluid -->
|
</div> <!-- /container-fluid -->
|
||||||
</nav>
|
</nav>
|
||||||
@@ -262,18 +262,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const clipboard = new window.ClipboardJS('.code-copy-button', {
|
const onCopySuccess = function(e) {
|
||||||
text: function(trigger) {
|
|
||||||
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
|
||||||
for (const childEl of codeEl.children) {
|
|
||||||
if (isCodeAnnotation(childEl)) {
|
|
||||||
childEl.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return codeEl.innerText;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
clipboard.on('success', function(e) {
|
|
||||||
// button target
|
// button target
|
||||||
const button = e.trigger;
|
const button = e.trigger;
|
||||||
// don't keep focus
|
// don't keep focus
|
||||||
@@ -305,7 +294,47 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
// clear code selection
|
// clear code selection
|
||||||
e.clearSelection();
|
e.clearSelection();
|
||||||
|
}
|
||||||
|
const getTextToCopy = function(trigger) {
|
||||||
|
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
||||||
|
for (const childEl of codeEl.children) {
|
||||||
|
if (isCodeAnnotation(childEl)) {
|
||||||
|
childEl.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return codeEl.innerText;
|
||||||
|
}
|
||||||
|
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
|
||||||
|
text: getTextToCopy
|
||||||
});
|
});
|
||||||
|
clipboard.on('success', onCopySuccess);
|
||||||
|
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
|
||||||
|
// For code content inside modals, clipBoardJS needs to be initialized with a container option
|
||||||
|
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
|
||||||
|
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
|
||||||
|
text: getTextToCopy,
|
||||||
|
container: window.document.getElementById('quarto-embedded-source-code-modal')
|
||||||
|
});
|
||||||
|
clipboardModal.on('success', onCopySuccess);
|
||||||
|
}
|
||||||
|
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
||||||
|
var mailtoRegex = new RegExp(/^mailto:/);
|
||||||
|
var filterRegex = new RegExp('/' + window.location.host + '/');
|
||||||
|
var isInternal = (href) => {
|
||||||
|
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
||||||
|
}
|
||||||
|
// Inspect non-navigation links and adorn them if external
|
||||||
|
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
|
||||||
|
for (var i=0; i<links.length; i++) {
|
||||||
|
const link = links[i];
|
||||||
|
if (!isInternal(link.href)) {
|
||||||
|
// undo the damage that might have been done by quarto-nav.js in the case of
|
||||||
|
// links that we want to consider external
|
||||||
|
if (link.dataset.originalHref !== undefined) {
|
||||||
|
link.href = link.dataset.originalHref;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
|
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
|
||||||
const config = {
|
const config = {
|
||||||
allowHTML: true,
|
allowHTML: true,
|
||||||
@@ -340,7 +369,11 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
|||||||
try { href = new URL(href).hash; } catch {}
|
try { href = new URL(href).hash; } catch {}
|
||||||
const id = href.replace(/^#\/?/, "");
|
const id = href.replace(/^#\/?/, "");
|
||||||
const note = window.document.getElementById(id);
|
const note = window.document.getElementById(id);
|
||||||
return note.innerHTML;
|
if (note) {
|
||||||
|
return note.innerHTML;
|
||||||
|
} else {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const xrefs = window.document.querySelectorAll('a.quarto-xref');
|
const xrefs = window.document.querySelectorAll('a.quarto-xref');
|
||||||
|
|||||||
+51
-18
@@ -2,12 +2,12 @@
|
|||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="generator" content="quarto-1.4.550">
|
<meta name="generator" content="quarto-1.5.56">
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
|
|
||||||
|
|
||||||
<title>Awesome Quant - About</title>
|
<title>About – Awesome Quant</title>
|
||||||
<style>
|
<style>
|
||||||
code{white-space: pre-wrap;}
|
code{white-space: pre-wrap;}
|
||||||
span.smallcaps{font-variant: small-caps;}
|
span.smallcaps{font-variant: small-caps;}
|
||||||
@@ -84,7 +84,7 @@ ul.task-list li input[type="checkbox"] {
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="quarto-search" class="" title="Search"></div>
|
<div id="quarto-search" class="" title="Search"></div>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||||
@@ -103,7 +103,7 @@ ul.task-list li input[type="checkbox"] {
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div> <!-- /navcollapse -->
|
</div> <!-- /navcollapse -->
|
||||||
<div class="quarto-navbar-tools">
|
<div class="quarto-navbar-tools">
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- /container-fluid -->
|
</div> <!-- /container-fluid -->
|
||||||
</nav>
|
</nav>
|
||||||
@@ -112,7 +112,7 @@ ul.task-list li input[type="checkbox"] {
|
|||||||
<div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article page-navbar">
|
<div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article page-navbar">
|
||||||
<!-- sidebar -->
|
<!-- sidebar -->
|
||||||
<!-- margin-sidebar -->
|
<!-- margin-sidebar -->
|
||||||
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
|
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar zindex-bottom">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- main -->
|
<!-- main -->
|
||||||
@@ -177,18 +177,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const clipboard = new window.ClipboardJS('.code-copy-button', {
|
const onCopySuccess = function(e) {
|
||||||
text: function(trigger) {
|
|
||||||
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
|
||||||
for (const childEl of codeEl.children) {
|
|
||||||
if (isCodeAnnotation(childEl)) {
|
|
||||||
childEl.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return codeEl.innerText;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
clipboard.on('success', function(e) {
|
|
||||||
// button target
|
// button target
|
||||||
const button = e.trigger;
|
const button = e.trigger;
|
||||||
// don't keep focus
|
// don't keep focus
|
||||||
@@ -220,7 +209,47 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
// clear code selection
|
// clear code selection
|
||||||
e.clearSelection();
|
e.clearSelection();
|
||||||
|
}
|
||||||
|
const getTextToCopy = function(trigger) {
|
||||||
|
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
||||||
|
for (const childEl of codeEl.children) {
|
||||||
|
if (isCodeAnnotation(childEl)) {
|
||||||
|
childEl.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return codeEl.innerText;
|
||||||
|
}
|
||||||
|
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
|
||||||
|
text: getTextToCopy
|
||||||
});
|
});
|
||||||
|
clipboard.on('success', onCopySuccess);
|
||||||
|
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
|
||||||
|
// For code content inside modals, clipBoardJS needs to be initialized with a container option
|
||||||
|
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
|
||||||
|
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
|
||||||
|
text: getTextToCopy,
|
||||||
|
container: window.document.getElementById('quarto-embedded-source-code-modal')
|
||||||
|
});
|
||||||
|
clipboardModal.on('success', onCopySuccess);
|
||||||
|
}
|
||||||
|
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
||||||
|
var mailtoRegex = new RegExp(/^mailto:/);
|
||||||
|
var filterRegex = new RegExp('/' + window.location.host + '/');
|
||||||
|
var isInternal = (href) => {
|
||||||
|
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
||||||
|
}
|
||||||
|
// Inspect non-navigation links and adorn them if external
|
||||||
|
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
|
||||||
|
for (var i=0; i<links.length; i++) {
|
||||||
|
const link = links[i];
|
||||||
|
if (!isInternal(link.href)) {
|
||||||
|
// undo the damage that might have been done by quarto-nav.js in the case of
|
||||||
|
// links that we want to consider external
|
||||||
|
if (link.dataset.originalHref !== undefined) {
|
||||||
|
link.href = link.dataset.originalHref;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
|
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
|
||||||
const config = {
|
const config = {
|
||||||
allowHTML: true,
|
allowHTML: true,
|
||||||
@@ -255,7 +284,11 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
|||||||
try { href = new URL(href).hash; } catch {}
|
try { href = new URL(href).hash; } catch {}
|
||||||
const id = href.replace(/^#\/?/, "");
|
const id = href.replace(/^#\/?/, "");
|
||||||
const note = window.document.getElementById(id);
|
const note = window.document.getElementById(id);
|
||||||
return note.innerHTML;
|
if (note) {
|
||||||
|
return note.innerHTML;
|
||||||
|
} else {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const xrefs = window.document.querySelectorAll('a.quarto-xref');
|
const xrefs = window.document.querySelectorAll('a.quarto-xref');
|
||||||
|
|||||||
+50
-17
@@ -2,7 +2,7 @@
|
|||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="generator" content="quarto-1.4.550">
|
<meta name="generator" content="quarto-1.5.56">
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ ul.task-list li input[type="checkbox"] {
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="quarto-search" class="" title="Search"></div>
|
<div id="quarto-search" class="" title="Search"></div>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||||
@@ -104,7 +104,7 @@ ul.task-list li input[type="checkbox"] {
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div> <!-- /navcollapse -->
|
</div> <!-- /navcollapse -->
|
||||||
<div class="quarto-navbar-tools">
|
<div class="quarto-navbar-tools">
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- /container-fluid -->
|
</div> <!-- /container-fluid -->
|
||||||
</nav>
|
</nav>
|
||||||
@@ -186,7 +186,7 @@ ul.task-list li input[type="checkbox"] {
|
|||||||
<div>
|
<div>
|
||||||
<div class="quarto-title-meta-heading">Modified</div>
|
<div class="quarto-title-meta-heading">Modified</div>
|
||||||
<div class="quarto-title-meta-contents">
|
<div class="quarto-title-meta-contents">
|
||||||
<p class="date-modified">August 2, 2024</p>
|
<p class="date-modified">August 11, 2024</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -844,18 +844,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const clipboard = new window.ClipboardJS('.code-copy-button', {
|
const onCopySuccess = function(e) {
|
||||||
text: function(trigger) {
|
|
||||||
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
|
||||||
for (const childEl of codeEl.children) {
|
|
||||||
if (isCodeAnnotation(childEl)) {
|
|
||||||
childEl.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return codeEl.innerText;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
clipboard.on('success', function(e) {
|
|
||||||
// button target
|
// button target
|
||||||
const button = e.trigger;
|
const button = e.trigger;
|
||||||
// don't keep focus
|
// don't keep focus
|
||||||
@@ -887,7 +876,47 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
// clear code selection
|
// clear code selection
|
||||||
e.clearSelection();
|
e.clearSelection();
|
||||||
|
}
|
||||||
|
const getTextToCopy = function(trigger) {
|
||||||
|
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
||||||
|
for (const childEl of codeEl.children) {
|
||||||
|
if (isCodeAnnotation(childEl)) {
|
||||||
|
childEl.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return codeEl.innerText;
|
||||||
|
}
|
||||||
|
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
|
||||||
|
text: getTextToCopy
|
||||||
});
|
});
|
||||||
|
clipboard.on('success', onCopySuccess);
|
||||||
|
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
|
||||||
|
// For code content inside modals, clipBoardJS needs to be initialized with a container option
|
||||||
|
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
|
||||||
|
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
|
||||||
|
text: getTextToCopy,
|
||||||
|
container: window.document.getElementById('quarto-embedded-source-code-modal')
|
||||||
|
});
|
||||||
|
clipboardModal.on('success', onCopySuccess);
|
||||||
|
}
|
||||||
|
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
||||||
|
var mailtoRegex = new RegExp(/^mailto:/);
|
||||||
|
var filterRegex = new RegExp('/' + window.location.host + '/');
|
||||||
|
var isInternal = (href) => {
|
||||||
|
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
||||||
|
}
|
||||||
|
// Inspect non-navigation links and adorn them if external
|
||||||
|
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
|
||||||
|
for (var i=0; i<links.length; i++) {
|
||||||
|
const link = links[i];
|
||||||
|
if (!isInternal(link.href)) {
|
||||||
|
// undo the damage that might have been done by quarto-nav.js in the case of
|
||||||
|
// links that we want to consider external
|
||||||
|
if (link.dataset.originalHref !== undefined) {
|
||||||
|
link.href = link.dataset.originalHref;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
|
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
|
||||||
const config = {
|
const config = {
|
||||||
allowHTML: true,
|
allowHTML: true,
|
||||||
@@ -922,7 +951,11 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
|||||||
try { href = new URL(href).hash; } catch {}
|
try { href = new URL(href).hash; } catch {}
|
||||||
const id = href.replace(/^#\/?/, "");
|
const id = href.replace(/^#\/?/, "");
|
||||||
const note = window.document.getElementById(id);
|
const note = window.document.getElementById(id);
|
||||||
return note.innerHTML;
|
if (note) {
|
||||||
|
return note.innerHTML;
|
||||||
|
} else {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const xrefs = window.document.querySelectorAll('a.quarto-xref');
|
const xrefs = window.document.querySelectorAll('a.quarto-xref');
|
||||||
|
|||||||
+54
-21
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
@@ -85,6 +85,7 @@ code span.st {
|
|||||||
|
|
||||||
code span.cf {
|
code span.cf {
|
||||||
color: #003B4F;
|
color: #003B4F;
|
||||||
|
font-weight: bold;
|
||||||
font-style: inherit;
|
font-style: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -193,6 +194,7 @@ code span.dv {
|
|||||||
|
|
||||||
code span.kw {
|
code span.kw {
|
||||||
color: #003B4F;
|
color: #003B4F;
|
||||||
|
font-weight: bold;
|
||||||
font-style: inherit;
|
font-style: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
|
|||||||
if (link.href.indexOf("#") !== -1) {
|
if (link.href.indexOf("#") !== -1) {
|
||||||
const anchor = link.href.split("#")[1];
|
const anchor = link.href.split("#")[1];
|
||||||
const heading = window.document.querySelector(
|
const heading = window.document.querySelector(
|
||||||
`[data-anchor-id=${anchor}]`
|
`[data-anchor-id="${anchor}"]`
|
||||||
);
|
);
|
||||||
if (heading) {
|
if (heading) {
|
||||||
// Add the class
|
// Add the class
|
||||||
@@ -134,8 +134,10 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
|
|||||||
window.innerHeight + window.pageYOffset >=
|
window.innerHeight + window.pageYOffset >=
|
||||||
window.document.body.offsetHeight
|
window.document.body.offsetHeight
|
||||||
) {
|
) {
|
||||||
|
// This is the no-scroll case where last section should be the active one
|
||||||
sectionIndex = 0;
|
sectionIndex = 0;
|
||||||
} else {
|
} else {
|
||||||
|
// This finds the last section visible on screen that should be made active
|
||||||
sectionIndex = [...sections].reverse().findIndex((section) => {
|
sectionIndex = [...sections].reverse().findIndex((section) => {
|
||||||
if (section) {
|
if (section) {
|
||||||
return window.pageYOffset >= section.offsetTop - sectionMargin;
|
return window.pageYOffset >= section.offsetTop - sectionMargin;
|
||||||
@@ -317,6 +319,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
|
|||||||
for (const child of el.children) {
|
for (const child of el.children) {
|
||||||
child.style.opacity = 0;
|
child.style.opacity = 0;
|
||||||
child.style.overflow = "hidden";
|
child.style.overflow = "hidden";
|
||||||
|
child.style.pointerEvents = "none";
|
||||||
}
|
}
|
||||||
|
|
||||||
nexttick(() => {
|
nexttick(() => {
|
||||||
@@ -358,6 +361,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
|
|||||||
|
|
||||||
const clone = child.cloneNode(true);
|
const clone = child.cloneNode(true);
|
||||||
clone.style.opacity = 1;
|
clone.style.opacity = 1;
|
||||||
|
clone.style.pointerEvents = null;
|
||||||
clone.style.display = null;
|
clone.style.display = null;
|
||||||
toggleContents.append(clone);
|
toggleContents.append(clone);
|
||||||
}
|
}
|
||||||
@@ -432,6 +436,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
|
|||||||
for (const child of el.children) {
|
for (const child of el.children) {
|
||||||
child.style.opacity = 1;
|
child.style.opacity = 1;
|
||||||
child.style.overflow = null;
|
child.style.overflow = null;
|
||||||
|
child.style.pointerEvents = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const placeholderEl = window.document.getElementById(
|
const placeholderEl = window.document.getElementById(
|
||||||
@@ -739,6 +744,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
|
|||||||
// Process the collapse state if this is an UL
|
// Process the collapse state if this is an UL
|
||||||
if (el.tagName === "UL") {
|
if (el.tagName === "UL") {
|
||||||
if (tocOpenDepth === -1 && depth > 1) {
|
if (tocOpenDepth === -1 && depth > 1) {
|
||||||
|
// toc-expand: false
|
||||||
el.classList.add("collapse");
|
el.classList.add("collapse");
|
||||||
} else if (
|
} else if (
|
||||||
depth <= tocOpenDepth ||
|
depth <= tocOpenDepth ||
|
||||||
@@ -757,10 +763,9 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// walk the TOC and expand / collapse any items that should be shown
|
// walk the TOC and expand / collapse any items that should be shown
|
||||||
|
|
||||||
if (tocEl) {
|
if (tocEl) {
|
||||||
walk(tocEl, 0);
|
|
||||||
updateActiveLink();
|
updateActiveLink();
|
||||||
|
walk(tocEl, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Throttle the scroll event and walk peridiocally
|
// Throttle the scroll event and walk peridiocally
|
||||||
@@ -779,6 +784,10 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
|
|||||||
window.addEventListener(
|
window.addEventListener(
|
||||||
"resize",
|
"resize",
|
||||||
throttle(() => {
|
throttle(() => {
|
||||||
|
if (tocEl) {
|
||||||
|
updateActiveLink();
|
||||||
|
walk(tocEl, 0);
|
||||||
|
}
|
||||||
if (!isReaderMode()) {
|
if (!isReaderMode()) {
|
||||||
hideOverlappedSidebars();
|
hideOverlappedSidebars();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,9 +5,45 @@ const headroomChanged = new CustomEvent("quarto-hrChanged", {
|
|||||||
composed: false,
|
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 () {
|
window.document.addEventListener("DOMContentLoaded", function () {
|
||||||
let init = false;
|
let init = false;
|
||||||
|
|
||||||
|
announceRegister();
|
||||||
|
|
||||||
// Manage the back to top button, if one is present.
|
// Manage the back to top button, if one is present.
|
||||||
let lastScrollTop = window.pageYOffset || document.documentElement.scrollTop;
|
let lastScrollTop = window.pageYOffset || document.documentElement.scrollTop;
|
||||||
const scrollDownBuffer = 5;
|
const scrollDownBuffer = 5;
|
||||||
@@ -237,6 +273,7 @@ window.document.addEventListener("DOMContentLoaded", function () {
|
|||||||
const links = window.document.querySelectorAll("a");
|
const links = window.document.querySelectorAll("a");
|
||||||
for (let i = 0; i < links.length; i++) {
|
for (let i = 0; i < links.length; i++) {
|
||||||
if (links[i].href) {
|
if (links[i].href) {
|
||||||
|
links[i].dataset.originalHref = links[i].href;
|
||||||
links[i].href = links[i].href.replace(/\/index\.html/, "/");
|
links[i].href = links[i].href.replace(/\/index\.html/, "/");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1275,7 +1275,11 @@ async function fuseSearch(query, fuse, fuseOptions) {
|
|||||||
|
|
||||||
// If we don't have a subfuse and the query is long enough, go ahead
|
// If we don't have a subfuse and the query is long enough, go ahead
|
||||||
// and create a subfuse to use for subsequent queries
|
// and create a subfuse to use for subsequent queries
|
||||||
if (now - then > kFuseMaxWait && subSearchFuse === undefined) {
|
if (
|
||||||
|
now - then > kFuseMaxWait &&
|
||||||
|
subSearchFuse === undefined &&
|
||||||
|
resultsRaw.length < fuseOptions.limit
|
||||||
|
) {
|
||||||
subSearchTerm = query;
|
subSearchTerm = query;
|
||||||
subSearchFuse = new window.Fuse([], kFuseIndexOptions);
|
subSearchFuse = new window.Fuse([], kFuseIndexOptions);
|
||||||
resultsRaw.forEach((rr) => {
|
resultsRaw.forEach((rr) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user