generated from rstudio/bookdown-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate: Rmd bookdown -> Quarto book
- Loading branch information
Showing
28 changed files
with
229 additions
and
41 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,44 @@ | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: main | ||
|
||
name: Quarto Publish | ||
|
||
jobs: | ||
build-deploy: | ||
runs-on: macOS-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install librsvg (svg for pdf) | ||
run: brew install librsvg | ||
|
||
- name: Install Quarto | ||
uses: quarto-dev/quarto-actions/setup@v2 | ||
|
||
- name: Install TinyTex (pdf) | ||
uses: r-lib/actions/setup-tinytex@v2 | ||
|
||
- name: Install headless chromium (mmd -> img) | ||
run: quarto install chromium | ||
|
||
- name: Install R | ||
uses: r-lib/actions/setup-r@v2 | ||
with: | ||
r-version: '4.4.0' | ||
|
||
- name: Install R Dependencies | ||
uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
cache-version: 2 | ||
|
||
- 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 |
---|---|---|
|
@@ -5,3 +5,5 @@ _publish.R | |
_book | ||
_bookdown_files | ||
rsconnect | ||
/.quarto/ | ||
.DS_Store |
This file was deleted.
Oops, something went wrong.
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,6 +1,20 @@ | ||
Package: placeholder | ||
Type: Book | ||
Title: Does not matter. | ||
Version: 0.0.1 | ||
Imports: bookdown | ||
Remotes: rstudio/bookdown | ||
Package: docs | ||
Title: Documentation for Marine Energy Toolkit | ||
Version: 0.0.0.9000 | ||
Authors@R: | ||
person("Ben", "Best", , "[email protected]", role = c("aut", "cre"), | ||
comment = c(ORCID = "0000-0002-2686-0784")) | ||
Description: What the package does (one paragraph). | ||
License: MIT + file LICENSE | ||
Encoding: UTF-8 | ||
Roxygen: list(markdown = TRUE) | ||
RoxygenNote: 7.3.2 | ||
Imports: | ||
dplyr, | ||
glue, | ||
here, | ||
knitr, | ||
librarian, | ||
quarto, | ||
stringr, | ||
yaml |
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,54 @@ | ||
project: | ||
type: book | ||
# pre-render: lib/pre-render.R | ||
output-dir: _book | ||
resources: | ||
- "/.nojekyll" | ||
|
||
book: | ||
title: "MEtkit Help" | ||
subtitle: "Marine Energy Toolkit Help" | ||
description: "Help documentation to set up, maintain, and use the Marine Energy Toolkit" | ||
author: | ||
- name: Benjamin D. Best | ||
orcid: 0000-0002-2686-0784 | ||
email: [email protected] | ||
affiliations: | ||
- name: EcoQuants LLC | ||
state: CA | ||
date: today | ||
date-format: "YYYY-MM-DD" | ||
site-url: https://marineenergy.github.io/help/ | ||
repo-url: https://github.com/marineenergy/help/ | ||
repo-actions: [edit] | ||
downloads: [pdf, docx] | ||
sharing: [twitter, facebook, linkedin] | ||
# google-analytics: "G-V3HZN14Z8G" # TODO: add Google Analytics | ||
search: true | ||
page-navigation: true | ||
chapters: | ||
- index.qmd | ||
- sysadmins.qmd | ||
- rtech.qmd | ||
- community.qmd | ||
- application.qmd | ||
- summary.qmd | ||
#- references.qmd | ||
|
||
bibliography: ["refs/book.bib", "refs/packages.bib"] | ||
bibliographystyle: apa | ||
link-citations: true | ||
|
||
format: | ||
html: | ||
theme: cosmo | ||
toc: true | ||
number-sections: true | ||
pdf: | ||
documentclass: scrreprt | ||
# keep-tex: true # for debugging | ||
docx: default | ||
|
||
|
||
|
||
|
File renamed without changes.
File renamed without changes.
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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,4 @@ | ||
# References {.unnumbered} | ||
|
||
::: {#refs} | ||
::: |
File renamed without changes.
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,83 @@ | ||
@Manual{R-base, | ||
title = {R: A Language and Environment for Statistical Computing}, | ||
author = {{R Core Team}}, | ||
organization = {R Foundation for Statistical Computing}, | ||
address = {Vienna, Austria}, | ||
year = {2021}, | ||
url = {https://www.R-project.org/}, | ||
} | ||
|
||
@Manual{R-bookdown, | ||
title = {bookdown: Authoring Books and Technical Documents with R Markdown}, | ||
author = {Yihui Xie}, | ||
year = {2021}, | ||
note = {https://github.com/rstudio/bookdown}, | ||
} | ||
|
||
@Manual{R-knitr, | ||
title = {knitr: A General-Purpose Package for Dynamic Report Generation in R}, | ||
author = {Yihui Xie}, | ||
year = {2021}, | ||
note = {R package version 1.36}, | ||
url = {https://yihui.org/knitr/}, | ||
} | ||
|
||
@Manual{R-rmarkdown, | ||
title = {rmarkdown: Dynamic Documents for R}, | ||
author = {JJ Allaire and Yihui Xie and Jonathan McPherson and Javier Luraschi and Kevin Ushey and Aron Atkins and Hadley Wickham and Joe Cheng and Winston Chang and Richard Iannone}, | ||
year = {2021}, | ||
note = {https://github.com/rstudio/rmarkdown}, | ||
} | ||
|
||
@Book{bookdown2016, | ||
title = {bookdown: Authoring Books and Technical Documents with {R} Markdown}, | ||
author = {Yihui Xie}, | ||
publisher = {Chapman and Hall/CRC}, | ||
address = {Boca Raton, Florida}, | ||
year = {2016}, | ||
note = {ISBN 978-1138700109}, | ||
url = {https://bookdown.org/yihui/bookdown}, | ||
} | ||
|
||
@Book{knitr2015, | ||
title = {Dynamic Documents with {R} and knitr}, | ||
author = {Yihui Xie}, | ||
publisher = {Chapman and Hall/CRC}, | ||
address = {Boca Raton, Florida}, | ||
year = {2015}, | ||
edition = {2nd}, | ||
note = {ISBN 978-1498716963}, | ||
url = {https://yihui.org/knitr/}, | ||
} | ||
|
||
@InCollection{knitr2014, | ||
booktitle = {Implementing Reproducible Computational Research}, | ||
editor = {Victoria Stodden and Friedrich Leisch and Roger D. Peng}, | ||
title = {knitr: A Comprehensive Tool for Reproducible Research in {R}}, | ||
author = {Yihui Xie}, | ||
publisher = {Chapman and Hall/CRC}, | ||
year = {2014}, | ||
note = {ISBN 978-1466561595}, | ||
url = {http://www.crcpress.com/product/isbn/9781466561595}, | ||
} | ||
|
||
@Book{rmarkdown2018, | ||
title = {R Markdown: The Definitive Guide}, | ||
author = {Yihui Xie and J.J. Allaire and Garrett Grolemund}, | ||
publisher = {Chapman and Hall/CRC}, | ||
address = {Boca Raton, Florida}, | ||
year = {2018}, | ||
note = {ISBN 9781138359338}, | ||
url = {https://bookdown.org/yihui/rmarkdown}, | ||
} | ||
|
||
@Book{rmarkdown2020, | ||
title = {R Markdown Cookbook}, | ||
author = {Yihui Xie and Christophe Dervieux and Emily Riederer}, | ||
publisher = {Chapman and Hall/CRC}, | ||
address = {Boca Raton, Florida}, | ||
year = {2020}, | ||
note = {ISBN 9780367563837}, | ||
url = {https://bookdown.org/yihui/rmarkdown-cookbook}, | ||
} | ||
|
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
File renamed without changes.
File renamed without changes.