Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed Aug 23, 2024
1 parent a310b20 commit 530d6b1
Show file tree
Hide file tree
Showing 131 changed files with 21,938 additions and 6,000 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d3354fe5
f1c30306
333 changes: 228 additions & 105 deletions index.html

Large diffs are not rendered by default.

195 changes: 160 additions & 35 deletions pages/faq/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">


<title>FAQ – Working in GF(2)</title>
<title>FAQ – Bit Space/GF(2)</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
Expand Down Expand Up @@ -35,10 +35,12 @@
<script src="../../site_libs/quarto-html/tippy.umd.min.js"></script>
<script src="../../site_libs/quarto-html/anchor.min.js"></script>
<link href="../../site_libs/quarto-html/tippy.css" rel="stylesheet">
<link href="../../site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<link href="../../site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" class="quarto-color-scheme" id="quarto-text-highlighting-styles">
<link href="../../site_libs/quarto-html/quarto-syntax-highlighting-dark.css" rel="prefetch" class="quarto-color-scheme quarto-color-alternate" id="quarto-text-highlighting-styles">
<script src="../../site_libs/bootstrap/bootstrap.min.js"></script>
<link href="../../site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="../../site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
<link href="../../site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" class="quarto-color-scheme" id="quarto-bootstrap" data-mode="light">
<link href="../../site_libs/bootstrap/bootstrap-dark.min.css" rel="prefetch" class="quarto-color-scheme quarto-color-alternate" id="quarto-bootstrap" data-mode="dark">
<script id="quarto-search-options" type="application/json">{
"location": "navbar",
"copy-button": false,
Expand Down Expand Up @@ -106,14 +108,10 @@
};
</script>

<meta property="og:title" content="FAQ – Working in GF(2)">
<meta property="og:title" content="FAQ – Bit Space/GF(2)">
<meta property="og:description" content="">
<meta property="og:image" content="https://nessan.github.io/bit/pages/faq/assets/images/logo.jpg">
<meta property="og:site_name" content="Working in GF(2)">
<meta name="twitter:title" content="FAQ – Working in GF(2)">
<meta name="twitter:description" content="">
<meta name="twitter:image" content="https://nessan.github.io/bit/pages/faq/assets/images/logo.jpg">
<meta name="twitter:card" content="summary_large_image">
<meta property="og:site_name" content="Bit Space/GF(2)">
</head>

<body class="nav-sidebar floating nav-fixed">
Expand Down Expand Up @@ -172,7 +170,7 @@
<span class="dropdown-text">Report a Bug</span></a>
</li>
<li>
<a class="dropdown-item" href="https://github.com/nessan/bit/discussions"><i class="bi bi-chat-right-text" role="img">
<a class="dropdown-item" href="mailto:nzznfitz+gh@icloud.com"><i class="bi bi-chat-right-text" role="img">
</i>
<span class="dropdown-text">Ask a Question</span></a>
</li>
Expand All @@ -182,7 +180,7 @@
</div> <!-- /navcollapse -->
<div class="quarto-navbar-tools">
<a href="https://github.com/nessan/bit" title="GitHub repo" class="quarto-navigation-tool px-1" aria-label="GitHub repo"><i class="bi bi-github"></i></a>
<a href="https://twitter.com/nezzan" title="" class="quarto-navigation-tool px-1" aria-label="Twitter"><i class="bi bi-twitter"></i></a>
<a href="" class="quarto-color-scheme-toggle quarto-navigation-tool px-1" onclick="window.quartoToggleColorScheme(); return false;" title="Toggle dark mode"><i class="bi"></i></a>
</div>
</div> <!-- /container-fluid -->
</nav>
Expand Down Expand Up @@ -515,23 +513,6 @@ <h1 class="title d-none d-lg-block">FAQ</h1>
</header>


<!-- Links and shortcuts used throughout the documentation -->
<!-- Math shortcuts we use frequently in the documentation -->
<div class="hidden">
<p><span class="math display">\[
\newcommand{\FF}{\mathbb{F}_2}
\newcommand{\R}{\mathbb{R}}
\]</span></p>
</div>
<!-- bit_verify -->
<!-- bit::vector -->
<!-- bit::matrix -->
<!-- bit::gauss -->
<!-- bit::lu -->
<!-- bit::polynomial -->
<!-- The standard library -->
<!-- Other software etc. -->
<!-- Articles and Wikipedia pages -->
<p>This eventually will be a list of FAQ’s</p>


Expand All @@ -557,6 +538,150 @@ <h1 class="title d-none d-lg-block">FAQ</h1>
}
}
toggleBodyColorPrimary();
const disableStylesheet = (stylesheets) => {
for (let i=0; i < stylesheets.length; i++) {
const stylesheet = stylesheets[i];
stylesheet.rel = 'prefetch';
}
}
const enableStylesheet = (stylesheets) => {
for (let i=0; i < stylesheets.length; i++) {
const stylesheet = stylesheets[i];
stylesheet.rel = 'stylesheet';
}
}
const manageTransitions = (selector, allowTransitions) => {
const els = window.document.querySelectorAll(selector);
for (let i=0; i < els.length; i++) {
const el = els[i];
if (allowTransitions) {
el.classList.remove('notransition');
} else {
el.classList.add('notransition');
}
}
}
const toggleGiscusIfUsed = (isAlternate, darkModeDefault) => {
const baseTheme = document.querySelector('#giscus-base-theme')?.value ?? 'light';
const alternateTheme = document.querySelector('#giscus-alt-theme')?.value ?? 'dark';
let newTheme = '';
if(darkModeDefault) {
newTheme = isAlternate ? baseTheme : alternateTheme;
} else {
newTheme = isAlternate ? alternateTheme : baseTheme;
}
const changeGiscusTheme = () => {
// From: https://github.com/giscus/giscus/issues/336
const sendMessage = (message) => {
const iframe = document.querySelector('iframe.giscus-frame');
if (!iframe) return;
iframe.contentWindow.postMessage({ giscus: message }, 'https://giscus.app');
}
sendMessage({
setConfig: {
theme: newTheme
}
});
}
const isGiscussLoaded = window.document.querySelector('iframe.giscus-frame') !== null;
if (isGiscussLoaded) {
changeGiscusTheme();
}
}
const toggleColorMode = (alternate) => {
// Switch the stylesheets
const alternateStylesheets = window.document.querySelectorAll('link.quarto-color-scheme.quarto-color-alternate');
manageTransitions('#quarto-margin-sidebar .nav-link', false);
if (alternate) {
enableStylesheet(alternateStylesheets);
for (const sheetNode of alternateStylesheets) {
if (sheetNode.id === "quarto-bootstrap") {
toggleBodyColorMode(sheetNode);
}
}
} else {
disableStylesheet(alternateStylesheets);
toggleBodyColorPrimary();
}
manageTransitions('#quarto-margin-sidebar .nav-link', true);
// Switch the toggles
const toggles = window.document.querySelectorAll('.quarto-color-scheme-toggle');
for (let i=0; i < toggles.length; i++) {
const toggle = toggles[i];
if (toggle) {
if (alternate) {
toggle.classList.add("alternate");
} else {
toggle.classList.remove("alternate");
}
}
}
// Hack to workaround the fact that safari doesn't
// properly recolor the scrollbar when toggling (#1455)
if (navigator.userAgent.indexOf('Safari') > 0 && navigator.userAgent.indexOf('Chrome') == -1) {
manageTransitions("body", false);
window.scrollTo(0, 1);
setTimeout(() => {
window.scrollTo(0, 0);
manageTransitions("body", true);
}, 40);
}
}
const isFileUrl = () => {
return window.location.protocol === 'file:';
}
const hasAlternateSentinel = () => {
let styleSentinel = getColorSchemeSentinel();
if (styleSentinel !== null) {
return styleSentinel === "alternate";
} else {
return false;
}
}
const setStyleSentinel = (alternate) => {
const value = alternate ? "alternate" : "default";
if (!isFileUrl()) {
window.localStorage.setItem("quarto-color-scheme", value);
} else {
localAlternateSentinel = value;
}
}
const getColorSchemeSentinel = () => {
if (!isFileUrl()) {
const storageValue = window.localStorage.getItem("quarto-color-scheme");
return storageValue != null ? storageValue : localAlternateSentinel;
} else {
return localAlternateSentinel;
}
}
const darkModeDefault = false;
let localAlternateSentinel = darkModeDefault ? 'alternate' : 'default';
// Dark / light mode switch
window.quartoToggleColorScheme = () => {
// Read the current dark / light value
let toAlternate = !hasAlternateSentinel();
toggleColorMode(toAlternate);
setStyleSentinel(toAlternate);
toggleGiscusIfUsed(toAlternate, darkModeDefault);
};
// Ensure there is a toggle, if there isn't float one in the top right
if (window.document.querySelector('.quarto-color-scheme-toggle') === null) {
const a = window.document.createElement('a');
a.classList.add('top-right');
a.classList.add('quarto-color-scheme-toggle');
a.href = "";
a.onclick = function() { try { window.quartoToggleColorScheme(); } catch {} return false; };
const i = window.document.createElement("i");
i.classList.add('bi');
a.appendChild(i);
window.document.body.appendChild(a);
}
// Switch to dark mode if need be
if (hasAlternateSentinel()) {
toggleColorMode(true);
} else {
toggleColorMode(false);
}
const icon = "";
const anchorJS = new window.AnchorJS();
anchorJS.options = {
Expand Down Expand Up @@ -961,12 +1086,9 @@ <h1 class="title d-none d-lg-block">FAQ</h1>
<footer class="footer">
<div class="nav-footer">
<div class="nav-footer-left">
<p>Copyright (c) Nessan Fitzmaurice</p>
<p>© 2022 Nessan ∙ Made with <a href="https://quarto.org">Quarto</a></p>
</div>
<div class="nav-footer-center">
<p>Project is under the MIT License</p>
<div class="toc-actions"><ul><li><a href="https://github.com/nessan/bit/edit/main/docs/pages/faq/index.qmd" class="toc-action"><i class="bi bi-github"></i>Edit this page</a></li><li><a href="https://github.com/nessan/bit/issues/new/choose" class="toc-action"><i class="bi empty"></i>Report an issue</a></li></ul></div></div>
<div class="nav-footer-right">
<ul class="footer-items list-unstyled">
<li class="nav-item compact">
<a class="nav-link" href="https://github.com/nessan/bit">
Expand All @@ -975,13 +1097,16 @@ <h1 class="title d-none d-lg-block">FAQ</h1>
</a>
</li>
<li class="nav-item compact">
<a class="nav-link" href="https://twitter.com/nezzan">
<i class="bi bi-twitter" role="img" aria-label="Twitter">
<a class="nav-link" href="mailto:nzznfitz+gh@icloud.com">
<i class="bi bi-envelope" role="img" aria-label="EMail address">
</i>
</a>
</li>
</ul>
</div>
<div class="toc-actions"><ul><li><a href="https://github.com/nessan/bit/edit/main/docs/pages/faq/index.qmd" class="toc-action"><i class="bi bi-github"></i>Edit this page</a></li><li><a href="https://github.com/nessan/bit/issues/new/choose" class="toc-action"><i class="bi empty"></i>Report an issue</a></li></ul></div></div>
<div class="nav-footer-right">
<p><a href="https://opensource.org/license/mit">MIT Licensed</a></p>
</div>
</div>
</footer>

Expand Down
Loading

0 comments on commit 530d6b1

Please sign in to comment.