-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
58 changed files
with
529 additions
and
4,702 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main, master] | ||
|
||
name: Quarto Render and Publish | ||
|
||
jobs: | ||
build-deploy: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Quarto | ||
uses: quarto-dev/quarto-actions/setup@v2 | ||
|
||
- name: Set up R | ||
uses: r-lib/actions/setup-r@v2 | ||
|
||
- name: Install R packages | ||
uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
packages: | ||
any::knitr | ||
any::rmarkdown | ||
|
||
- name: Render and Publish | ||
uses: quarto-dev/quarto-actions/publish@v2 | ||
with: | ||
target: gh-pages | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,9 @@ | ||
# intro-git | ||
# Version control with git & GitHub <img src="https://raw.githubusercontent.com/FRBCesab/templates/main/logos/website-sticker.png" align="right" style="float:right; height:120px;"/> | ||
|
||
[](https://github.com/FRBCesab/intro-git/actions/workflows/pages/pages-build-deployment) | ||
<!-- badges: start --> | ||
[](https://github.com/FRBCesab/intro-git/actions/workflows/quarto-publish.yml) | ||
[](https://choosealicense.com/licenses/cc-by-4.0/)<!-- badges: end --> | ||
|
||
A [`xaringan`](https://cran.r-project.org/web/packages/xaringan/index.html) presentation to introduce [`git`](https://git-scm.com/) and [`GitHub`](https://github.com). | ||
|
||
|
||
|
||
## Setup | ||
|
||
You'll need these two R packages: `rmarkdown` and `xaringan`. | ||
|
||
```{r} | ||
install.packages(c("rmarkdown", "xaringan")) | ||
``` | ||
|
||
|
||
## Contributing | ||
|
||
To modify the slides, edit the `index.Rmd` and then: | ||
|
||
```{r} | ||
rmarkdown::render("index.Rmd") | ||
``` | ||
Coming soon... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
title: Font Awesome support | ||
author: Carlos Scheidegger | ||
version: 1.1.0 | ||
quarto-required: ">=1.2.269" | ||
contributes: | ||
shortcodes: | ||
- fontawesome.lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
_extensions/quarto-ext/fontawesome/assets/css/latex-fontsize.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 added
BIN
+176 KB
_extensions/quarto-ext/fontawesome/assets/webfonts/FontAwesome6Brands-Regular-400.ttf
Binary file not shown.
Binary file added
BIN
+90 KB
_extensions/quarto-ext/fontawesome/assets/webfonts/FontAwesome6Brands-Regular-400.woff2
Binary file not shown.
Binary file added
BIN
+74.3 KB
_extensions/quarto-ext/fontawesome/assets/webfonts/FontAwesome6Free-Regular-400.ttf
Binary file not shown.
Binary file added
BIN
+24.5 KB
_extensions/quarto-ext/fontawesome/assets/webfonts/FontAwesome6Free-Regular-400.woff2
Binary file not shown.
Binary file added
BIN
+376 KB
_extensions/quarto-ext/fontawesome/assets/webfonts/FontAwesome6Free-Solid-900.ttf
Binary file not shown.
Binary file added
BIN
+131 KB
_extensions/quarto-ext/fontawesome/assets/webfonts/FontAwesome6Free-Solid-900.woff2
Binary file not shown.
Binary file renamed
BIN
+182 KB
...-awesome-6.2.1/webfonts/fa-brands-400.ttf → ...awesome/assets/webfonts/fa-brands-400.ttf
Binary file not shown.
Binary file added
BIN
+103 KB
_extensions/quarto-ext/fontawesome/assets/webfonts/fa-brands-400.woff2
Binary file not shown.
Binary file renamed
BIN
+60.9 KB
...awesome-6.2.1/webfonts/fa-regular-400.ttf → ...wesome/assets/webfonts/fa-regular-400.ttf
Binary file not shown.
Binary file added
BIN
+23.4 KB
_extensions/quarto-ext/fontawesome/assets/webfonts/fa-regular-400.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+10.3 KB
_extensions/quarto-ext/fontawesome/assets/webfonts/fa-v4compatibility.ttf
Binary file not shown.
Binary file added
BIN
+4.84 KB
_extensions/quarto-ext/fontawesome/assets/webfonts/fa-v4compatibility.woff2
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
Oops, something went wrong.