mirror of
https://github.com/dwinkler1/dwinkler1.github.io.git
synced 2026-11-22 01:24:38 -05:00
init website
This commit is contained in:
parent
340b4b775d
commit
7f619c6f4a
26 changed files with 21672 additions and 1 deletions
7
_extensions/quarto-ext/fontawesome/_extension.yml
Normal file
7
_extensions/quarto-ext/fontawesome/_extension.yml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
title: Font Awesome support
|
||||
author: Carlos Scheidegger
|
||||
version: 1.1.0
|
||||
quarto-required: ">=1.2.269"
|
||||
contributes:
|
||||
shortcodes:
|
||||
- fontawesome.lua
|
||||
7971
_extensions/quarto-ext/fontawesome/assets/css/all.css
vendored
Normal file
7971
_extensions/quarto-ext/fontawesome/assets/css/all.css
vendored
Normal file
File diff suppressed because it is too large
Load diff
30
_extensions/quarto-ext/fontawesome/assets/css/latex-fontsize.css
vendored
Normal file
30
_extensions/quarto-ext/fontawesome/assets/css/latex-fontsize.css
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
.fa-tiny {
|
||||
font-size: 0.5em;
|
||||
}
|
||||
.fa-scriptsize {
|
||||
font-size: 0.7em;
|
||||
}
|
||||
.fa-footnotesize {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
.fa-small {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
.fa-normalsize {
|
||||
font-size: 1em;
|
||||
}
|
||||
.fa-large {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
.fa-Large {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
.fa-LARGE {
|
||||
font-size: 1.75em;
|
||||
}
|
||||
.fa-huge {
|
||||
font-size: 2em;
|
||||
}
|
||||
.fa-Huge {
|
||||
font-size: 2.5em;
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
84
_extensions/quarto-ext/fontawesome/fontawesome.lua
Normal file
84
_extensions/quarto-ext/fontawesome/fontawesome.lua
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
local function ensureLatexDeps()
|
||||
quarto.doc.use_latex_package("fontawesome5")
|
||||
end
|
||||
|
||||
local function ensureHtmlDeps()
|
||||
quarto.doc.add_html_dependency({
|
||||
name = 'fontawesome6',
|
||||
version = '0.1.0',
|
||||
stylesheets = {'assets/css/all.css', 'assets/css/latex-fontsize.css'}
|
||||
})
|
||||
end
|
||||
|
||||
local function isEmpty(s)
|
||||
return s == nil or s == ''
|
||||
end
|
||||
|
||||
local function isValidSize(size)
|
||||
local validSizes = {
|
||||
"tiny",
|
||||
"scriptsize",
|
||||
"footnotesize",
|
||||
"small",
|
||||
"normalsize",
|
||||
"large",
|
||||
"Large",
|
||||
"LARGE",
|
||||
"huge",
|
||||
"Huge"
|
||||
}
|
||||
for _, v in ipairs(validSizes) do
|
||||
if v == size then
|
||||
return size
|
||||
end
|
||||
end
|
||||
return ""
|
||||
end
|
||||
|
||||
return {
|
||||
["fa"] = function(args, kwargs)
|
||||
|
||||
local group = "solid"
|
||||
local icon = pandoc.utils.stringify(args[1])
|
||||
if #args > 1 then
|
||||
group = icon
|
||||
icon = pandoc.utils.stringify(args[2])
|
||||
end
|
||||
|
||||
local title = pandoc.utils.stringify(kwargs["title"])
|
||||
if not isEmpty(title) then
|
||||
title = " title=\"" .. title .. "\""
|
||||
end
|
||||
|
||||
local label = pandoc.utils.stringify(kwargs["label"])
|
||||
if isEmpty(label) then
|
||||
label = " aria-label=\"" .. icon .. "\""
|
||||
else
|
||||
label = " aria-label=\"" .. label .. "\""
|
||||
end
|
||||
|
||||
local size = pandoc.utils.stringify(kwargs["size"])
|
||||
|
||||
-- detect html (excluding epub which won't handle fa)
|
||||
if quarto.doc.is_format("html:js") then
|
||||
ensureHtmlDeps()
|
||||
if not isEmpty(size) then
|
||||
size = " fa-" .. size
|
||||
end
|
||||
return pandoc.RawInline(
|
||||
'html',
|
||||
"<i class=\"fa-" .. group .. " fa-" .. icon .. size .. "\"" .. title .. label .. "></i>"
|
||||
)
|
||||
-- detect pdf / beamer / latex / etc
|
||||
elseif quarto.doc.is_format("pdf") then
|
||||
ensureLatexDeps()
|
||||
if isEmpty(isValidSize(size)) then
|
||||
return pandoc.RawInline('tex', "\\faIcon{" .. icon .. "}")
|
||||
else
|
||||
return pandoc.RawInline('tex', "{\\" .. size .. "\\faIcon{" .. icon .. "}}")
|
||||
end
|
||||
else
|
||||
return pandoc.Null()
|
||||
end
|
||||
end
|
||||
}
|
||||
6
_extensions/schochastics/academicons/_extension.yml
Normal file
6
_extensions/schochastics/academicons/_extension.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
title: Support for academicons
|
||||
author: David Schoch
|
||||
version: 0.3.0
|
||||
contributes:
|
||||
shortcodes:
|
||||
- academicons.lua
|
||||
82
_extensions/schochastics/academicons/academicons.lua
Normal file
82
_extensions/schochastics/academicons/academicons.lua
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
-- function ensureLatexDeps()
|
||||
-- quarto.doc.useLatexPackage("academicons")
|
||||
-- end
|
||||
|
||||
local function ensureHtmlDeps()
|
||||
quarto.doc.addHtmlDependency({
|
||||
name = "academicons",
|
||||
version = "1.9.2",
|
||||
stylesheets = { "assets/css/all.css", "assets/css/size.css" }
|
||||
})
|
||||
end
|
||||
|
||||
local function isEmpty(s)
|
||||
return s == nil or s == ''
|
||||
end
|
||||
|
||||
local function isValidSize(size)
|
||||
local validSizes = {
|
||||
"tiny", "scriptsize", "footnotesize", "small", "normalsize",
|
||||
"large", "Large", "LARGE", "huge", "Huge",
|
||||
"1x", "2x", "3x", "4x", "5x", "6x", "7x", "8x", "9x", "10x",
|
||||
"2xs", "xs", "sm", "lg", "xl", "2xl"
|
||||
}
|
||||
for _, v in ipairs(validSizes) do
|
||||
if v == size then
|
||||
return " ai-" .. size
|
||||
end
|
||||
end
|
||||
return ""
|
||||
end
|
||||
|
||||
return {
|
||||
["ai"] = function(args, kwargs)
|
||||
local group = ""
|
||||
local icon = pandoc.utils.stringify(args[1])
|
||||
if #args > 1 then
|
||||
group = icon
|
||||
icon = pandoc.utils.stringify(args[2])
|
||||
end
|
||||
|
||||
local size = isValidSize(pandoc.utils.stringify(kwargs["size"]))
|
||||
local color = pandoc.utils.stringify(kwargs["color"])
|
||||
if not isEmpty(color) then
|
||||
color = " style=\"color:" .. color .. "\""
|
||||
--else
|
||||
-- color = " style=\"color:" .. "black" .. "\""
|
||||
end
|
||||
|
||||
local title = pandoc.utils.stringify(kwargs["title"])
|
||||
if not isEmpty(title) then
|
||||
title = " title=\"" .. title .. "\""
|
||||
end
|
||||
|
||||
-- detect html (excluding epub)
|
||||
if quarto.doc.isFormat("html:js") then
|
||||
ensureHtmlDeps()
|
||||
if isEmpty(size) then
|
||||
local csize = pandoc.utils.stringify(kwargs["size"])
|
||||
if (isEmpty(csize)) then
|
||||
csize = ""
|
||||
else
|
||||
csize = " style=\"font-size:" .. csize .. "\""
|
||||
end
|
||||
return pandoc.RawInline(
|
||||
'html',
|
||||
"<i class=\"ai " .. group .. " ai-" .. icon .. "\"" .. title .. color .. csize .. "></i>"
|
||||
)
|
||||
else
|
||||
return pandoc.RawInline(
|
||||
'html',
|
||||
"<i class=\"ai " .. group .. " ai-" .. icon .. size .. "\"" .. title .. color .. "></i>"
|
||||
)
|
||||
end
|
||||
-- detect pdf / beamer / latex / etc
|
||||
-- elseif quarto.doc.isFormat("pdf") then
|
||||
-- ensureLatexDeps()
|
||||
-- return pandoc.RawInline('tex', "\\aiIcon{" .. icon .. "}")
|
||||
else
|
||||
return pandoc.Null()
|
||||
end
|
||||
end
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue