Skip to content

Commit

Permalink
Addded jekyll theme
Browse files Browse the repository at this point in the history
  • Loading branch information
dchodge committed Oct 17, 2024
1 parent f593f3b commit e3c8780
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ name: pkgdown
jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
Expand All @@ -33,16 +32,24 @@ jobs:
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}
# Install Ruby and Jekyll
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0' # Set this according to your needs
bundler-cache: true

- name: Install Jekyll
run: bundle install

- name: Build Jekyll Site
run: bundle exec jekyll build

- name: Deploy to GitHub pages 🚀
- name: Deploy to GitHub Pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
clean: false
branch: gh-pages
folder: docs
folder: _site # Jekyll outputs to the _site folder by default
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
remote_theme: pages-themes/minimal@v0.2.0
plugins:
- jekyll-remote-theme # add this line to the plugins list if you already have one
2 changes: 2 additions & 0 deletions vignettes/model_define.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,10 @@ Before running the whoel model it is good to check the data and the priors. This
p1 <- plotSero(seroModel)
p2 <- plotPriorPredictive(seroModel)
p3 <- plotPriorInfection(seroModel)
p1 / p2
p3
```

Expand Down

0 comments on commit e3c8780

Please sign in to comment.