Skip to content

Commit 2175e83

Browse files
authored
Merge branch 'dev' into c2b_blogpost
2 parents 038e773 + ed18ea2 commit 2175e83

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2600
-192
lines changed

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
target-branch: dev
7+
schedule:
8+
interval: "weekly"
9+
# Maintain dependencies for npm
10+
- package-ecosystem: "npm"
11+
directory: "/"
12+
target-branch: dev
13+
schedule:
14+
interval: "weekly"

.github/release-drafter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ categories:
1919
labels:
2020
- "chore"
2121
- "documentation"
22+
- "dependencies"
2223
change-template: "- #$NUMBER $TITLE"
2324
change-title-escapes: '\<*_&`#@'
2425
template: |

.github/workflows/blog.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
# submodules: true # Fetch Hugo themes (true OR recursive)
1717
fetch-depth: 3
1818
- name: Cache Conda
19-
uses: actions/cache@v1
19+
uses: actions/cache@v2.1.5
2020
with:
2121
path: ~/conda_pkgs_dir
2222
key: ${{ runner.os }}-conda6-${{ hashFiles('environment.yml') }}
@@ -42,7 +42,7 @@ jobs:
4242
run: |
4343
Rscript ./dependencies.R
4444
- name: Restore Blogdown Cache
45-
uses: actions/cache@v2
45+
uses: actions/cache@v2.1.5
4646
with:
4747
path: |
4848
./blogdown
@@ -62,10 +62,10 @@ jobs:
6262
./content/blog
6363
./static/blog
6464
65-
- uses: actions/setup-node@v1
65+
- uses: actions/setup-node@v2.1.5
6666
with:
6767
node-version: "12"
68-
- uses: actions/cache@v2
68+
- uses: actions/cache@v2.1.5
6969
with:
7070
path: ~/.npm
7171
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.github/workflows/ci.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/[email protected]
1515
with:
1616
node-version: "14"
17-
- uses: actions/cache@v2
17+
- uses: actions/cache@v2.1.5
1818
with:
1919
path: ~/.npm
2020
key: ${{ runner.os }}-node3-${{ hashFiles('**/package-lock.json') }}
@@ -61,23 +61,22 @@ jobs:
6161
echo "::set-output name=tag::$imageTag"
6262
echo "::set-output name=repo::ghcr.io/${{ github.repository }}"
6363
- name: Push Dev Tag
64-
if: startsWith(github.ref, 'refs/heads/dev')
6564
run: |
6665
docker tag repo ${{ steps.tagname.outputs.repo }}:${{ steps.tagname.outputs.tag }}
6766
docker push ${{ steps.tagname.outputs.repo }}:${{ steps.tagname.outputs.tag }}
6867
- name: Extract version
6968
if: startsWith(github.ref, 'refs/heads/main')
7069
id: extract_version
7170
run: node -pe "'::set-output name=version::' + require('./package.json').version"
72-
- name: Push Version Tag Tag
73-
if: startsWith(github.ref, 'refs/heads/main')
74-
run: |
75-
docker tag repo ${{ steps.tagname.outputs.repo }}:v{{ steps.extract_version.outputs.version }}
76-
docker push ${{ steps.tagname.outputs.repo }}:v{{ steps.extract_version.outputs.version }}
7771
- name: Trigger Webhook
7872
run: |
7973
# trigger a webhook update
8074
curl -H "Authorization: Bearer ${{ secrets.DELPHI_DEPLOY_WEBHOOK_TOKEN }}" \
8175
-X POST ${{ secrets.DELPHI_DEPLOY_WEBHOOK_URL }} \
8276
-H "Content-Type: application/x-www-form-urlencoded" \
8377
-d "repository=${{ steps.tagname.outputs.repo }}&tag=${{ steps.tagname.outputs.tag }}"
78+
- name: Push Version Tag Tag
79+
if: startsWith(github.ref, 'refs/heads/main')
80+
run: |
81+
docker tag repo ${{ steps.tagname.outputs.repo }}:v${{ steps.extract_version.outputs.version }}
82+
docker push ${{ steps.tagname.outputs.repo }}:v${{ steps.extract_version.outputs.version }}

.github/workflows/release_main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- name: Check out code
2020
uses: actions/checkout@v2
21-
- uses: actions/setup-node@v2
21+
- uses: actions/setup-node@v2.1.5
2222
with:
2323
node-version: "14"
2424
- name: Extract version
@@ -43,11 +43,11 @@ jobs:
4343
steps:
4444
- name: Check out code
4545
uses: actions/checkout@v2
46-
- uses: actions/setup-node@v2
46+
- uses: actions/setup-node@v2.1.5
4747
with:
4848
node-version: "14"
4949
- name: Cache Node.js modules
50-
uses: actions/cache@v2
50+
uses: actions/cache@v2.1.5
5151
with:
5252
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
5353
key: ${{ runner.OS }}-node2-${{ hashFiles('**/package-lock.json') }}

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*.Rmd
2929
*.md
3030
*.jpeg
31+
*.csv
3132
*.ico
3233
*.bib
3334
*.xcf

README.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# Delphi Website
22

3-
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/cmu-delpih/www-main)
3+
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/cmu-delphi/www-main)
44

55

6-
Delphi's homepage at https://cmu-delphi-main.netlify.app/
6+
The current stable `main` version is deployed at https://delphi.cmu.edu and https://cmu-delphi-main.netlify.app/.
7+
8+
The next `dev` version is deployed at https://staging.delphi.cmu.edu/ and https://dev--cmu-delphi-main.netlify.app/.
79

810
This site is based on [Hugo](https://gohugo.io) and uses [Prettier](https://prettier.io) for formatting.
911

@@ -49,7 +51,7 @@ In RMarkdown things are slightly more different since the R Markdown parser is u
4951

5052
## Development Environment
5153

52-
One click: [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/cmu-delpih/www-main)
54+
One click: [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/cmu-delphi/www-main)
5355

5456
### Web Editor Only
5557

@@ -84,7 +86,7 @@ In order to convert the Rmd files to HTML files for Hugo you also need to:
8486
- `local=TRUE` similar to `-D` to process draft files
8587
- `run_hugo=FALSE` to manually run hugo
8688
- `build_rmd=TRUE` force a (re)build of the Rmd pages
87-
1. Run blogdown to convert a single file to HTML: `Rscript -e 'blogdown::build_site(local=TRUE, run_hugo=FALSE, build_rmd="content/blog/<NAME>.Rmd")'`
89+
1. Run blogdown to convert a single file to HTML: `Rscript -e 'blogdown::build_site(local=TRUE, run_hugo=FALSE, build_rmd="content/blog/<NAME>.Rmd")'` where `<NAME>` should be replaced by the name of the Rmd file.
8890
1. Alternatively, run `npm run build:blog`
8991
1. Run Hugo server as usual
9092

@@ -101,12 +103,16 @@ This simplifies the deployment and ensures that we have a blog post even when th
101103

102104
### Release Process
103105

104-
The release process is based on [release-it](https://github.com/release-it/release-it). To create a release, run
105-
106-
1. create/checkout the release branch `release` and push to origin
107-
1. run `npm run release` and publish the release
108-
1. create a PR that merges the `release` branch in the `main` branch
109-
1. create a PR that merges the `main` branch back into the `dev` branch
110-
111-
Then go to the release page and update short description of the changes made.
106+
The release consists of multiple steps which can be all done via the GitHub website:
107+
108+
1. Go to [create_release GitHub Action](https://github.com/cmu-delphi/www-main/actions/workflows/create_release.yml) and click the `Run workflow` button. Enter the next version number or one of the magic keywords (patch, minor, major) and hit the green `Run workflow` button.
109+
1. The action will prepare a new release and will end up with a new [Pull Request](https://github.com/cmu-delphi/www-main/pulls)
110+
1. Let the code owner review the PR and its changes and let the CI check whether everything builds successfully
111+
1. Once approved and merged, another GitHub action job starts which automatically will
112+
1. create a git tag
113+
1. create another [Pull Request](https://github.com/cmu-delphi/www-main/pulls) to merge the changes back to the `dev` branch
114+
1. create a [GitHub release](https://github.com/cmu-delphi/www-main/releases) with automatically derived release notes
115+
1. create docker image and the production system will be notified to pull this update
116+
1. Once the jobs are completed the new release should be available at https://delphi.cmu.edu within minutes.
117+
1. Done
112118

config.toml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ relativeURLs = false
2525
name = "Team"
2626
url = "/about/team"
2727
weight = 2
28+
[[menu.main]]
29+
parent = "about"
30+
name = "Center of Excellence"
31+
url = "/about/center-of-excellence"
32+
weight = 3
2833
[[menu.main]]
2934
parent = "about"
3035
name = "Publications"
@@ -56,11 +61,16 @@ relativeURLs = false
5661
name = "Explore an Indicator"
5762
url = "/covidcast/indicator"
5863
weight = 3
64+
[[menu.main]]
65+
parent = "covidcast"
66+
name = "Explore Correlations"
67+
url = "/covidcast/correlation"
68+
weight = 4
5969
[[menu.main]]
6070
parent = "covidcast"
6171
name = "Classic Map"
6272
url = "/covidcast/classic"
63-
weight = 4
73+
weight = 30
6474
[[menu.main]]
6575
parent = "covidcast"
6676
name = "Forecast Evaluation"
@@ -86,6 +96,11 @@ relativeURLs = false
8696
name = "Export Data"
8797
url = "/covidcast/export"
8898
weight = 70
99+
[[menu.main]]
100+
parent = "covidcast"
101+
name = "Data Anomalies"
102+
url = "/covidcast/data-anomalies"
103+
weight = 71
89104
[[menu.main]]
90105
parent = "covidcast"
91106
name = "Release Log"
@@ -132,4 +147,4 @@ relativeURLs = false
132147
feedbackDelayMin = 45 # in sec
133148
feedbackDelayMax = 180 # in sec
134149
feedbackDuration = 60 # show it for 60sec
135-
highlightLinks = "/covidcast/,/covidcast/summary,/covidcast/indicator,/signals-dashboard/,/forecast-eval/"
150+
highlightLinks = "/covidcast/correlation,/covidcast/data-anomalies"

content/about/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Public health authorities (federal, state, local), the healthcare industry, the
3232

3333
### Delphi's milestones
3434

35-
- Since 2013, we've supported U.S. CDC's Influenza Division in advancing and growing a [scientific community around flu forecasting](https://www.cdc.gov/flu/weekly/flusight/index.html). We've been perennial leaders in forecasting accuracy.
35+
- Since 2013, we've supported U.S. CDC's Influenza Division in advancing and growing a [scientific community around flu forecasting](https://www.cdc.gov/flu/weekly/flusight/index.html). We've been [perennial leaders in forecasting accuracy](https://www.cs.cmu.edu/~roni/CDC%20Flu%20Challenge%202014-2018%20Results.pdf).
3636

3737
- Since 2016, we've developed the [Delphi Epidata API]({{< apiref "/" >}}), which provides real-time access to epidemiological surveillance data.
3838

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
title: Delphi National Center of Excellence for Epidemic Forecasting
3+
layout: coe
4+
members:
5+
- name: Carnegie Mellon University
6+
group: DELPHI Research Group
7+
link: /
8+
location: Pittsburgh, Pennsylvania, United States
9+
pi:
10+
- ryan # people keys
11+
- roni
12+
- name: Carnegie Mellon University
13+
group: EPP
14+
link: https://www.cmu.edu/epp
15+
location: Pittsburgh, Pennsylvania, United States
16+
pi:
17+
- fischhoff
18+
- name: University of Pittsburgh
19+
group: GSPH
20+
link: https://publichealth.pitt.edu/
21+
location: Pittsburgh, Pennsylvania, United States
22+
pi:
23+
- burke
24+
- panhuis
25+
- name: Harvard University
26+
group: CCDD
27+
link: https://www.hsph.harvard.edu/
28+
location: Cambridge, Massachusetts, United States
29+
pi:
30+
- lipsitch
31+
32+
sisters:
33+
- name: CDC's Influence Division
34+
description: Our funders and collaborators at the [CDC's Influenza Division](https://www.cdc.gov/ncird/flu.html), specially the Influenza Applied Research & Modeling team at the [Epidemiology and Prevention branch](https://www.cdc.gov/hiv/dhap/eb/index.html).
35+
link: https://www.cdc.gov/ncird/flu.html
36+
img: logos/cdc.png
37+
- name: University of Massachusetts Amherst
38+
description: Our sister organization, the [Influenza Forecasting Center of Excellence at UMass Amherst](https://reichlab.io/).
39+
link: https://reichlab.io/
40+
img: logos/reichlab.png
41+
42+
supporters:
43+
- Allegheny County Dept of Health
44+
- Change Healthcare
45+
- DTRA
46+
- Facebook
47+
- Kaiser Permanente Washington Health Research Institute
48+
- Massachusetts Dept of Public Health
49+
- Microsoft Azure
50+
- Pennsylvania Dept. of Health
51+
- Quidel Inc.
52+
- UnitedHealth / Optum
53+
- UPMC
54+
---
55+
56+
The Delphi National Center of Excellence for Influenza Forecasting was established in 2019. It is a CDC funded and CDC-designated center working on advancing influenza forecasting, and enabling and improving the usefulness of forecasts of both seasonal and pandemic influenza. During the 2020 pandemic, the center expanded to include real-time tracking ("nowcasting") and forecasting of COVID-19, giving rise to the COVIDcast project. Our goal is to inform public health responses and policy development at the national, state and local levels. Another goal is to inform and empower the general public, providing trustworthy information and reliable short term forecasts that increase the credibility of and trust in public health authorities.

0 commit comments

Comments
 (0)