-
Notifications
You must be signed in to change notification settings - Fork 0
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
build: 🔧 add files to auto-build website #4
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b4f5746
chore: :see_no_evil: use template `.gitignore` file for Quarto projects
lwjohnst86 ad1a606
docs: :pencil2: this website doesn't use Netlify
lwjohnst86 acdedb6
docs: :memo: add instructions for installing deps and building website
lwjohnst86 9a4efb8
chore: :truck: use lowercase file and folder names
lwjohnst86 75d3973
build: :wrench: add Quarto build file
lwjohnst86 25aff2e
build: :wrench: add DESCRIPTION file to manage package dependencies
lwjohnst86 58cdf1a
ci: :construction_worker: add GitHub workflow to auto-build website
lwjohnst86 04b4a15
Merge branch 'main' of https://github.com/steno-aarhus/IDEG-mediation…
lwjohnst86 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,42 @@ | ||
name: Build website to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
# You need these permissions to publish to GitHub pages | ||
permissions: | ||
contents: write | ||
pages: write | ||
|
||
jobs: | ||
build-deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Quarto | ||
uses: quarto-dev/quarto-actions/setup@v2 | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tinytex: false | ||
|
||
- name: Setup R | ||
uses: r-lib/actions/setup-r@v2 | ||
|
||
- name: Install R package dependencies | ||
uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
cache-version: 2 | ||
|
||
- name: Publish to GitHub Pages (and render) | ||
uses: quarto-dev/quarto-actions/publish@v2 | ||
with: | ||
target: gh-pages | ||
env: | ||
# This secret is always available for github actions | ||
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,6 +1,25 @@ | ||
# RStudio and R files | ||
.Rbuildignore | ||
.Rproj.user | ||
.Rhistory | ||
.RData | ||
.Ruserdata | ||
.DS_Store | ||
.Rdata | ||
|
||
# Temporary files | ||
*.tmp | ||
|
||
# Authentication files | ||
.httr-oauth | ||
|
||
# MacOS | ||
.DS_Store | ||
|
||
# Quarto | ||
/.quarto/ | ||
|
||
# Website generation | ||
_site | ||
_book | ||
_freeze | ||
*_files | ||
*.html | ||
|
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,20 @@ | ||
Package: ideg.mediation.course | ||
Type: Website | ||
Version: 0.1 | ||
Title: "Mediation course" | ||
Depends: | ||
R (>= 3.6.0), | ||
tidyverse | ||
Encoding: UTF-8 | ||
LazyData: true | ||
Imports: | ||
CMAverse, | ||
DiagrammeR, | ||
DiagrammeRsvg, | ||
dplyr, | ||
here, | ||
knitr, | ||
medflex, | ||
mediation, | ||
readr, | ||
rmarkdown |
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,34 @@ | ||
project: | ||
type: book | ||
# pre-render: quarto render slides/*.qmd | ||
# resources: | ||
# - slides/*.html | ||
|
||
book: | ||
title: "Mediation course" | ||
author: | ||
- Jie Zhang | ||
- Daniel Witte | ||
date: last-modified | ||
repo-url: https://github.com/steno-aarhus/IDEG-mediation-course | ||
site-url: https://steno-aarhus.github.io/IDEG-mediation-course | ||
chapters: | ||
- index.qmd | ||
- part: "Preamble" | ||
- part: "Sessions" | ||
chapters: | ||
- sessions/welcome.qmd | ||
- sessions/motivation.qmd | ||
- sessions/traditional-mediation-analysis.qmd | ||
appendices: | ||
- appendix/welcome.qmd | ||
page-footer: | ||
center: | ||
- text: "License: CC BY 4.0" | ||
|
||
format: html | ||
|
||
editor: | ||
markdown: | ||
wrap: 72 | ||
canonical: true |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section is where you add the files you want put onto the website. Unfortunately, you can't put slide files here. But we deal with that when you get to it.
I didn't put anything into
part: "Preamble"
because yourprecourse.qmd
file was in one of the_files/
folders, which I moved in #2, so that needs to be merged first before you can add it correctly here.