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 Sep 22, 2024
1 parent cd9adee commit 38fbefb
Show file tree
Hide file tree
Showing 19 changed files with 355 additions and 68 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
89411d6a
73781c9a
39 changes: 38 additions & 1 deletion _extensions/grantmcdermott/clean/clean.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ Note: This theme uses the Roboto font family, which it imports from Google
preserving consistent font weights, you may also wish to remove "Roboto"
from the choice set if the family is installed locally.
*/
@import url(https://fonts.googleapis.com/css?family=Roboto:200,200i,300,300i,350,350i,400,400i);
@import url('https://fonts.googleapis.com/css?family=Roboto:200,200i,300,300i,350,350i,400,400i&display=swap');

$font-family-sans-serif: "Roboto", sans-serif !default;
$presentation-heading-font: "Roboto", sans-serif !default;

Expand Down Expand Up @@ -240,6 +241,42 @@ $selection-bg: #26351c !default;
margin-right: 5px;
}

// tables

.reveal table {
// height: auto; /* Adjust table width to fit content up to the available slide space */
margin: auto;
border-collapse: collapse;
border-spacing: 0;
font-size: 0.8em;
}

.reveal table th,
.reveal table td {
border: none; /* Remove internal row lines */
padding: .23em; /* Adjust padding as needed */
text-align: left; /* Adjust text alignment as needed */
font-weight: lighter; /* Lighter font weight for main table text */
}

/* Adds a bottom border to the table header row for distinction */
.reveal table thead th,
.reveal .slides table tr:last-child td,
.reveal .slides table {
border-bottom: 2px solid #D3D3D3; /* Dark grey color for the bottom border */
}

/* Make column headers bold */
.reveal table thead th {
font-weight: bold;
}

/* Styling table captions */
.reveal table caption {
color: #666666; /* Dark grey color for the caption */
font-variant: small-caps; /* Use small caps for the caption text */
}

// Special catch for etable environment to ensure these table images
// don't overflow the slide.
// See: https://lrberge.github.io/fixest/articles/etable_new_features.html
Expand Down
15 changes: 9 additions & 6 deletions _extensions/jmbuhr/qrcode/qrcode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ local function wrapInlineDiv(options)
return [[
<div id="${id}" class="qrcode"></div>
<script type="text/javascript">
var qrcode = new QRCode("${id}", ]]
.. options .. [[);
(function() {
var script = document.currentScript;
var qrcode = script.previousElementSibling;
qrcode.qrcode = new QRCode(qrcode, ]] .. options .. [[);
script.remove();
})();
</script>
]]
end
Expand All @@ -64,10 +68,9 @@ return {
scripts = { './assets/qrcode.js' },
}
local url = pandoc.utils.stringify(args[1])
local id = 'qrcode'
local maybeId = args[2]
if maybeId ~= nil then
id = pandoc.utils.stringify(maybeId)
local id = ""
if args[2] ~= nil then
id = f('id="${id}" ', { id = pandoc.utils.stringify(id) })
end
local options = mergeOptions(url, kwargs)
local text = wrapInlineDiv(options)
Expand Down
20 changes: 20 additions & 0 deletions _extensions/r-wasm/drop/_extension.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
title: Quarto Drop
author: George Stagg
version: 0.1.0-dev
quarto-required: ">=1.3.0"
contributes:
revealjs-plugins:
- name: RevealDrop
script:
- drop-runtime.js
stylesheet:
- drop-runtime.css
config:
drop:
button: true
shortcut: "`"
engine: webr
webr:
packages: []
pyodide:
packages: []
37 changes: 37 additions & 0 deletions _extensions/r-wasm/drop/drop-runtime.css

Large diffs are not rendered by default.

147 changes: 147 additions & 0 deletions _extensions/r-wasm/drop/drop-runtime.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _extensions/shafayetShafee/reveal-header/_extension.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
title: Reveal-header
author: Shafayet Khan Shafee
version: 1.2.7
version: 1.2.8
quarto-required: ">=1.2.0"
contributes:
filters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
.reveal-header.no-logo .sc-title p {margin-left: 6vw}


.reveal .header-logo svg,
.reveal .header-logo img {
margin: var(--header-margin);
padding-left: 1vw;
Expand All @@ -46,6 +47,8 @@
}




/* .reveal .slides { margin-top: 3vh !important;} */
.inverse-header { color: #c5d7ce !important;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ function header() {
reveal.insertBefore(header, reveal.firstChild);

logo_img = document.querySelector('.header-logo img');
if (logo_img.getAttribute('src') == null) {
if (logo_img?.getAttribute('src') == null) {
if (logo_img?.getAttribute('data-src') != null) {
logo_img.src = logo_img?.getAttribute('data-src') || "";
logo_img.removeAttribute('data-src');
logo_img?.removeAttribute('data-src');
};
};
};
Expand Down Expand Up @@ -86,12 +86,12 @@ function header() {
const footer_logo_link = get_clean_attrs(header_logo, 'data-footer-logo-link');

if (header_logo_link != null) {
const header_logo_img = document.querySelector('div.header-logo img');
const header_logo_img = document.querySelector('div.header-logo').firstElementChild;
linkify_logo(header_logo_img, header_logo_link);
};

if (footer_logo_link != null) {
const footer_logo_img = document.querySelector('img.slide-logo');
const footer_logo_img = document.querySelector('.slide-logo');
footer_logo_img.setAttribute('style', "z-index:99;");
linkify_logo(footer_logo_img, footer_logo_link);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

if (Reveal.isReady()) {

if (document.querySelector('div.reveal-header img').getAttribute('src').length == 0) {
if (document.querySelector('div.reveal-header img')?.getAttribute('src')?.length == 0) {
document.querySelector('div.reveal-header').classList.add('no-logo')
}

Expand Down
Loading

0 comments on commit 38fbefb

Please sign in to comment.