Skip to content

Commit

Permalink
Merge pull request #10 from steno-aarhus/create-website
Browse files Browse the repository at this point in the history
Start of the basic infrastructure to make a website
  • Loading branch information
lwjohnst86 authored Oct 30, 2023
2 parents 3f96a5e + b4d7aa8 commit 71eab09
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
35 changes: 35 additions & 0 deletions .github/workflows/build-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
push:
branches:
- main

name: build-deploy

jobs:
build-deploy:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: 2

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: false

- name: Publish to GitHub Pages (and render)
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
.Rhistory
.RData
.Ruserdata

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

website:
title: "SDCA Epi Stats"
site-url: "https://steno-aarhus.github.io/epi-stats/"
repo-url: "https://github.com/steno-aarhus/epi-stats"
repo-branch: main
repo-actions: [edit, issue, source]
search:
location: navbar
type: overlay
navbar:
pinned: true
tools:
- icon: github
href: "https://github.com/steno-aarhus/epi-stats"
page-footer:
center:
- text: "License: CC BY 4.0"
href: LICENSE.md

reference-location: margin
title-block-banner: images/banner.png

format:
html:
toc: true
df-print: tibble
code-overflow: scroll
from: markdown+emoji
code-link: true
theme: litera

editor_options:
markdown:
wrap: 72
canonical: true
4 changes: 4 additions & 0 deletions index.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Steno Aarhus Epidemiology and Statistics
---

0 comments on commit 71eab09

Please sign in to comment.