-
Notifications
You must be signed in to change notification settings - Fork 22
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
56 changed files
with
4,152 additions
and
4,186 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Render Quarto book | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
bookdown: | ||
name: Render & publish Quarto book | ||
runs-on: macOS-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Install Quarto | ||
uses: quarto-dev/quarto-actions/setup@v2 | ||
with: | ||
tinytex: true # for pdf | ||
|
||
- name: Install librsvg (svg for pdf) | ||
run: brew install librsvg | ||
|
||
- name: Install R | ||
uses: r-lib/actions/setup-r@v2 | ||
with: | ||
r-version: '4.4.1' # 2024-09-04 | ||
|
||
- name: Install R dependencies | ||
uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
cache-version: 2 | ||
|
||
- name: Render and Publish | ||
# TODO: `quarto publish gh-pages` https://quarto.org/docs/publishing/github-pages.html#publishing | ||
uses: quarto-dev/quarto-actions/publish@v2 | ||
with: | ||
target: gh-pages | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|
||
|
||
# Need to first create an empty gh-pages branch | ||
# see https://pkgdown.r-lib.org/reference/deploy_site_github.html | ||
# and also add secrets for a GH_PAT and EMAIL to the repository | ||
# gh-action from Cecilapp/GitHub-Pages-deploy | ||
|
||
checkout-and-deploy: | ||
runs-on: ubuntu-latest | ||
needs: bookdown | ||
|
||
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | ||
permissions: | ||
pages: write # to deploy to Pages | ||
id-token: write # to verify the deployment originates from an appropriate source | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
- name: Download artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
# Artifact name | ||
name: _book # optional | ||
# Destination path | ||
path: 'bio-data-guide/docs' # see _bookdown.yml: output_dir | ||
|
||
|
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,3 +1,5 @@ | ||
/bio-data-guide/docs | ||
/bio-data-guide/bio-data-guide.rds | ||
.Rproj.user | ||
/_book | ||
.Rproj.user | ||
/.quarto/ | ||
.DS_Store | ||
.Rhistory |
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
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,65 @@ | ||
project: | ||
type: book | ||
pre-render: lib/pre-render.R | ||
output-dir: _book | ||
resources: | ||
- "/.nojekyll" | ||
|
||
book: | ||
title: "BioDataGuide" | ||
subtitle: "Darwin Core Marine Example Compendium" | ||
description: "Scaling multiple dimensions of diversity in biological data" | ||
author: | ||
- "By: [Standardizing Marine Biological Data Working Group](https://github.com/ioos/bio_data_guide/graphs/contributors)" | ||
- "![](figs/contrib.rocks.svg)" | ||
date: today | ||
date-format: "YYYY-MM-DD" | ||
site-url: https://ioos.github.io/bio_data_guide/ | ||
repo-url: https://github.com/ioos/bio_data_guide/ | ||
repo-actions: [edit] | ||
downloads: [pdf, docx, epub] | ||
sharing: [twitter, facebook, linkedin] | ||
# google-analytics: "G-V3HZN14Z8G" # TODO: add Google Analytics | ||
search: true | ||
page-navigation: true | ||
chapters: | ||
- index.qmd | ||
- intro.qmd | ||
- part: apps.qmd | ||
chapters: | ||
- datasets/TPWD_HARC_BagSeine/TPWD_HARC_BagSeine_OBISENV.qmd | ||
- datasets/hakai_salmon_data/salmon-darwin-core-remap.qmd | ||
- datasets/hakai_seagrass_data/hakaiSeagrassToDWC.qmd | ||
- datasets/trawl_catch_data/trawl-catch-data.qmd | ||
- datasets/dataset-edna/README.md | ||
- datasets/atn_satellite_telemetry/atn_satellite_telemetry_netCDF2DwC.qmd | ||
appendices: | ||
- faq.qmd | ||
- tools.qmd | ||
- extras.qmd | ||
- references.qmd | ||
|
||
bibliography: ["lib/book.bib", "lib/packages.bib", "lib/OBIS_data_examples.bib"] | ||
bibliographystyle: apa | ||
link-citations: true | ||
|
||
format: | ||
html: | ||
theme: cosmo | ||
css: lib/style.css | ||
toc: true | ||
number-sections: true | ||
pdf: | ||
documentclass: scrreprt | ||
# keep-tex: true # for debugging | ||
include-in-header: lib/preamble.tex | ||
nocite: | | ||
@* | ||
docx: | ||
toc: true | ||
number-sections: true | ||
highlight-style: github | ||
epub: default | ||
|
||
|
||
|
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,6 @@ | ||
# Applications | ||
|
||
This chapter contains a series of example applications to convert source data to the Darwin Core standard. You can find | ||
these examples (and more!) in the GitHub repository under the [`datasets/`](https://github.com/ioos/bio_data_guide/tree/main/datasets) | ||
directory. | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-28.1 KB
...a-guide/_bookdown_files/03-application_files/figure-epub3/unnamed-chunk-3-1.png
Binary file not shown.
Binary file removed
BIN
-94.9 KB
...ta-guide/_bookdown_files/03-application_files/figure-html/unnamed-chunk-3-1.png
Binary file not shown.
Binary file removed
BIN
-270 KB
bio-data-guide/_bookdown_files/03-application_files/figure-latex/unnamed-chunk-3-1.pdf
Binary file not shown.
Binary file removed
BIN
-69.8 KB
...own_files/Standardizing-Marine-Biological-Data_files/figure-html/nice-fig-1.png
Binary file not shown.
Binary file removed
BIN
-5.71 KB
...de/_bookdown_files/Standardizing-Marine-Biological-Data_files/figure-latex/nice-fig-1.pdf
Binary file not shown.
Oops, something went wrong.