Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add quarto-generated website #5

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
46 changes: 46 additions & 0 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy Quarto Site to GitHub Pages
permissions:
contents: write
pages: write

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: '4.3.1' # Specify the R version you need

- name: Install required R packages
uses: r-lib/actions/setup-renv@v2
with:
cache-version: 1

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# To install LaTeX to build PDF book
tinytex: true

- name: Render Quarto site
run: |
quarto render --to html

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _site # Path to the rendered Quarto site
destination_dir: . # Publish to the root of the gh-pages branch
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,12 @@ po/*~

# RStudio Connect folder
rsconnect/

.quarto/
_site/

/.quarto/

*.Rproj

renv/
22 changes: 22 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
project:
type: website

website:
title: "SEUS MBON Zooplankton Microscopy Analyses"
navbar:
left:
- text: Analyses
menu:
- qmd/mbon_zoo_viz.qmd
- qmd/simple_csv_check.qmd

- href: https://github.com/usf-imars/seus-mbon-zooplankton-microscopy
text: Source Code on GitHub

format:
html:
theme: cosmo
toc: true
code-fold: true
message: false
warning: false
2 changes: 2 additions & 0 deletions index.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# seus-mbon-zooplankton-microscopy
Analyses of SouthEast US MBON research cruise zooplankton microscopy data.
Loading