Skip to content

Commit

Permalink
Merge pull request #247 from cmu-delphi/ds/doc
Browse files Browse the repository at this point in the history
ci+docs: match style with epipredict
  • Loading branch information
dshemetov authored Feb 23, 2024
2 parents 530ffdd + 440efa9 commit 6a9c29a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ jobs:
- name: Build site
env:
DELPHI_EPIDATA_KEY: ${{ secrets.SECRET_EPIDATR_GHACTIONS_DELPHI_EPIDATA_KEY }}
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
run: |
if (startsWith("${{ github.event_name }}", "pull_request")) {
mode <- ifelse("${{ github.base_ref }}" == "main", "release", "devel")
} else {
mode <- ifelse("${{ github.ref_name }}" == "main", "release", "devel")
}
pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE, override=list(PKGDOWN_DEV_MODE=mode))
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ env
/Meta/
.secrets
epidatr.Rproj
renv.lock
renv/
.Rprofile
20 changes: 6 additions & 14 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,29 @@
# Colors should stay consistent across epipredict & epidatr, using Carnegie
# Red https://www.cmu.edu/brand/brand-guidelines/visual-identity/colors.html
template:
bootstrap: 5
bootswatch: cosmo
bslib:
font_scale: 1.0
primary: '#C41230'
link-color: '#C41230'
navbar-bg: '#C41230'
navbar-fg: '#f8f8f8'

development:
mode: auto
primary: "#C41230"
link-color: "#C41230"

navbar:
bg: '#C41230'
fg: '#f8f8f8'
bg: primary
type: dark

home:
links:
- text: Get the Python client
href: https://github.com/cmu-delphi/epidatpy/

- text: View the Delphi Website
href: https://delphi.cmu.edu/

- text: Introduction to Delphi's Tooling Work
href: https://cmu-delphi.github.io/delphi-tooling-book/

- text: The epiprocess R package
href: https://cmu-delphi.github.io/epiprocess/

- text: The epipredict R package
href: https://cmu-delphi.github.io/epipredict/

- text: The epidatasets R package
href: https://cmu-delphi.github.io/epidatasets/

Expand Down

0 comments on commit 6a9c29a

Please sign in to comment.