Skip to content

Commit 94145e4

Browse files
committed
Merge remote-tracking branch 'origin/dev' into unpack-cfr
2 parents 2b5cab2 + 71bbfcc commit 94145e4

35 files changed

+1132
-885
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,22 @@ jobs:
4646
with:
4747
path: |
4848
./blogdown
49-
key: ${{ runner.os }}-blogdown2-${{ hashFiles('content/blog/**.Rmd') }}
49+
key: ${{ runner.os }}-blogdown2-${{ hashFiles('environment.yml') }}-${{ hashFiles('content/blog/**.Rmd') }}
5050
restore-keys: |
51+
${{ runner.os }}-blogdown2-${{ hashFiles('environment.yml') }}-
5152
${{ runner.os }}-blogdown2-
5253
- name: Build site
5354
shell: bash -l {0}
5455
run: |
5556
npm run build:blog
5657
58+
- uses: actions/upload-artifact@v2
59+
with:
60+
name: blog
61+
path: |
62+
./content/blog
63+
./static/blog
64+
5765
- uses: actions/setup-node@v1
5866
with:
5967
node-version: "12"

.gitpod.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
image:
2+
file: ./devops/gitpod.dockerfile
3+
tasks:
4+
- init: npm install && RScript -e "blogdown::install_hugo()"
5+
- command: "echo 'run: \"npm start\" or \"npm run start:blog\"'"
6+
ports:
7+
- port: 1313
8+
vscode:
9+
extensions:
10+
- [email protected]:SrD06skfmg05hLAerl2aKQ==

.prettierignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@
2929
*.md
3030
*.jpeg
3131
*.ico
32-
/themes/delphi/layouts/partials/webp-image.html
32+
/themes/delphi/layouts/partials/webp-image.html
33+
/themes/delphi/layouts/shortcodes/apireflink.html
34+
/themes/delphi/layouts/shortcodes/reflink.html

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
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)
4+
5+
36
Delphi's homepage at https://cmu-delphi-main.netlify.app/
47

58
This site is based on [Hugo](https://gohugo.io) and uses [Prettier](https://prettier.io) for formatting.
@@ -38,9 +41,9 @@ In RMarkdown things are slightly more different since the R Markdown parser is u
3841
**Examples**
3942

4043
```
41-
[Facebook](`r blogdown::shortcode_html("ref", "2020-08-26-fb-survey")`)
42-
[previous exploratory investigations](`r blogdown::shortcode_html("ref", "2020-08-26-fb-survey#some-interesting-examples")`)
43-
[public API](`r blogdown::shortcode_html("apiref", "api/covidcast.html")`)
44+
`r blogdown::shortcode_html("reflink", "2020-08-26-fb-survey", "Facebook")`
45+
`r blogdown::shortcode_html("reflink", "2020-08-26-fb-survey#some-interesting-examples", "previous exploratory investigations")`
46+
`r blogdown::shortcode_html("apireflink", "api/covidcast.html", "public API")`
4447
4548
```
4649

@@ -53,6 +56,8 @@ In addition, there in the `/data` directory there are the following listings in
5356

5457
## Development Environment
5558

59+
One click: [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/cmu-delpih/www-main)
60+
5661
### Web Editor Only
5762

5863
1. Install Node: https://nodejs.org/en/download/

content/blog/2015-07-23-template-post.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ suggest we consider the following tags as base tags:
110110

111111
### Linking to other pages and blog posts:
112112

113-
using the file name and the Hugo shortcodes, e.g.: [Facebook Post](`r blogdown::shortcode_html("relref", "2020-08-26-fb-survey")`).
113+
using the file name and the Hugo shortcodes, e.g.: `r blogdown::shortcode_html("reflink", "2020-08-26-fb-survey", "Facebook Post")`.
114114
Jumping to a specific section/anchor is supported too:
115-
[previous exploratory investigations](`r blogdown::shortcode_html("relref", "2020-08-26-fb-survey#some-interesting-examples")`)
115+
`r blogdown::shortcode_html("reflink", "2020-08-26-fb-survey#some-interesting-examples", "previous exploratory investigations")`
116116

117117
### Linking to the API doc:
118118

119119
there is another shortcode for creating an api link, e.g.
120-
[public API](`r blogdown::shortcode_html("apiref", "/")`) or
121-
[Doctor's Visits signal](`r blogdown::shortcode_html("apiref", "api/covidcast-signals/doctor-visits.html")`)
120+
`r blogdown::shortcode_html("apireflink", "/", "public API")` or
121+
`r blogdown::shortcode_html("apireflink", "api/covidcast-signals/doctor-visits.html", "Doctor's Visits signal")`

content/blog/2015-07-23-template-post.html

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
---
2424

2525
<script src="/rmarkdown-libs/header-attrs/header-attrs.js"></script>
26-
<link href="/rmarkdown-libs/anchor-sections/anchor-sections.css" rel="stylesheet" />
27-
<script src="/rmarkdown-libs/anchor-sections/anchor-sections.js"></script>
2826

2927
<div id="TOC">
3028
<ul>
@@ -49,21 +47,21 @@
4947
see <a href="http://rmarkdown.rstudio.com" class="uri">http://rmarkdown.rstudio.com</a>.</p>
5048
<p>You can embed an R code chunk like this:</p>
5149
<pre class="r"><code>summary(cars)
52-
## speed dist
53-
## Min. : 4.0 Min. : 2.00
54-
## 1st Qu.:12.0 1st Qu.: 26.00
55-
## Median :15.0 Median : 36.00
56-
## Mean :15.4 Mean : 42.98
57-
## 3rd Qu.:19.0 3rd Qu.: 56.00
50+
## speed dist
51+
## Min. : 4.0 Min. : 2.00
52+
## 1st Qu.:12.0 1st Qu.: 26.00
53+
## Median :15.0 Median : 36.00
54+
## Mean :15.4 Mean : 42.98
55+
## 3rd Qu.:19.0 3rd Qu.: 56.00
5856
## Max. :25.0 Max. :120.00
5957
fit &lt;- lm(dist ~ speed, data = cars)
6058
fit
61-
##
59+
##
6260
## Call:
6361
## lm(formula = dist ~ speed, data = cars)
64-
##
62+
##
6563
## Coefficients:
66-
## (Intercept) speed
64+
## (Intercept) speed
6765
## -17.579 3.932</code></pre>
6866
<div id="including-plots" class="section level2">
6967
<h2>Including Plots</h2>
@@ -142,14 +140,14 @@ <h3>Tags</h3>
142140
<h2>Linking</h2>
143141
<div id="linking-to-other-pages-and-blog-posts" class="section level3">
144142
<h3>Linking to other pages and blog posts:</h3>
145-
<p>using the file name and the Hugo shortcodes, e.g.: <a href="{{< relref "2020-08-26-fb-survey" >}}">Facebook Post</a>.
143+
<p>using the file name and the Hugo shortcodes, e.g.: {{< reflink "2020-08-26-fb-survey" "Facebook Post" >}}.
146144
Jumping to a specific section/anchor is supported too:
147-
<a href="{{< relref "2020-08-26-fb-survey#some-interesting-examples" >}}">previous exploratory investigations</a></p>
145+
{{< reflink "2020-08-26-fb-survey#some-interesting-examples" "previous exploratory investigations" >}}</p>
148146
</div>
149147
<div id="linking-to-the-api-doc" class="section level3">
150148
<h3>Linking to the API doc:</h3>
151149
<p>there is another shortcode for creating an api link, e.g. 
152-
<a href="{{< apiref "/" >}}">public API</a> or
153-
<a href="{{< apiref "api/covidcast-signals/doctor-visits.html" >}}">Doctors Visits signal</a></p>
150+
{{< apireflink "/" "public API" >}} or
151+
{{< apireflink "api/covidcast-signals/doctor-visits.html" "Doctor's Visits signal" >}}</p>
154152
</div>
155153
</div>

content/blog/2020-08-10-hello-world.Rmd

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ and making headway into dengue and norovirus.
5959
To learn about the work our group has done in the past,
6060
including some papers we've written, software tools we've built,
6161
and the real-time epidemiological data server we've been deploying since 2016,
62-
check out [our website](`r blogdown::shortcode("ref", "/")`).
62+
check out `r blogdown::shortcode_html("reflink", "/", "our website")`.
6363

6464
When the COVID-19 pandemic arrived, we focused all our attention on it.
6565
Our Delphi team
@@ -70,7 +70,7 @@ including Stanford, UC Davis, and USC, and also from industry.
7070
The pace has been intense and dizzying at times,
7171
and we're infinitely grateful for the contributions
7272
and commitment of all our new members---we'd be nowhere without them.
73-
See [here](`r blogdown::shortcode("ref", "team")`)
73+
See `r blogdown::shortcode_html("reflink", "team", "here")`
7474
for a list of the Delphi team members.
7575

7676
With new members comes a new breadth of expertise:
@@ -145,14 +145,12 @@ Here's a quick summary:
145145
aggregated counts from massive medical claims data sets through partners like
146146
Change Healthcare.
147147

148-
- We've built a [public
149-
API](`r blogdown::shortcode_html("apiref", "api/covidcast.html")`),
150-
and [R and Python
151-
packages](`r blogdown::shortcode_html("apiref", "api/covidcast_clients.html")`),
148+
- We've built a `r blogdown::shortcode_html("apireflink", "api/covidcast.html", "public API")`,
149+
and `r blogdown::shortcode_html("apireflink", "api/covidcast_clients.html", "R and Python packages")`,
152150
to serve our indicators to researchers and the public. This API provides new
153151
data daily.
154152

155-
- We've built [interactive maps and graphics](`r blogdown::shortcode("ref", "covidcast")`) to
153+
- We've built `r blogdown::shortcode_html("reflink", "covidcast", "interactive maps and graphics")` to
156154
display our indicators, and better inform the public and decision-makers.
157155

158156
- We've developed forecasts of the future spread of the pandemic,

content/blog/2020-08-10-hello-world.html

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,19 @@
1313
Hello from the Delphi research group at Carnegie Mellon University!
1414
We're a group of faculty, students, and staff, based primarily out of CMU
1515
together with strong collaborators from other universities and industry.
16-
Our group was founded in 2012 to advance the theory and practice of epidemic
17-
forecasting. Since March 2020, we have refocused efforts towards helping combat
16+
Our group was founded in 2012 to advance the theory and practice of epidemic
17+
forecasting. Since March 2020, we have refocused efforts towards helping combat
1818
the COVID-19 pandemic, by supporting informed decision-making at federal, state,
1919
and local levels of government and in the healthcare sector. Until now, we've
20-
been pretty “heads down” with our work, and slow to communicate what we've been
21-
up to. But at last ... Delphi finally has a blog! This first post serves as an
20+
been pretty “heads down” with our work, and slow to communicate what we've been
21+
up to. But at last ... Delphi finally has a blog! This first post serves as an
2222
introduction of sorts. Future posts will dive deeper into our various projects.
2323
output:
2424
blogdown::html_page:
2525
toc: true
2626
---
2727

2828
<script src="/rmarkdown-libs/header-attrs/header-attrs.js"></script>
29-
<link href="/rmarkdown-libs/anchor-sections/anchor-sections.css" rel="stylesheet" />
30-
<script src="/rmarkdown-libs/anchor-sections/anchor-sections.js"></script>
3129

3230
<div id="TOC">
3331
<ul>
@@ -69,7 +67,7 @@ <h2>A Little Bit About Us</h2>
6967
To learn about the work our group has done in the past,
7068
including some papers we’ve written, software tools we’ve built,
7169
and the real-time epidemiological data server we’ve been deploying since 2016,
72-
check out <a href="{{% ref "/" %}}">our website</a>.</p>
70+
check out {{< reflink "/" "our website" >}}.</p>
7371
<p>When the COVID-19 pandemic arrived, we focused all our attention on it.
7472
Our Delphi team
7573
quickly grew to 30+ members, and is still growing.
@@ -79,7 +77,7 @@ <h2>A Little Bit About Us</h2>
7977
The pace has been intense and dizzying at times,
8078
and we’re infinitely grateful for the contributions
8179
and commitment of all our new members—we’d be nowhere without them.
82-
See <a href="{{% ref "team" %}}">here</a>
80+
See {{< reflink "team" "here" >}}
8381
for a list of the Delphi team members.</p>
8482
<p>With new members comes a new breadth of expertise:
8583
our expertise now covers statistical modeling, computation,
@@ -146,13 +144,11 @@ <h2>What We’ve Been Up To</h2>
146144
through partnerships with Facebook and Google, and others are based on
147145
aggregated counts from massive medical claims data sets through partners like
148146
Change Healthcare.</p></li>
149-
<li><p>We’ve built a <a href="{{< apiref "api/covidcast.html" >}}">public
150-
API</a>,
151-
and <a href="{{< apiref "api/covidcast_clients.html" >}}">R and Python
152-
packages</a>,
147+
<li><p>We’ve built a {{< apireflink "api/covidcast.html" "public API" >}},
148+
and {{< apireflink "api/covidcast_clients.html" "R and Python packages" >}},
153149
to serve our indicators to researchers and the public. This API provides new
154150
data daily.</p></li>
155-
<li><p>We’ve built <a href="{{% ref "covidcast" %}}">interactive maps and graphics</a> to
151+
<li><p>We’ve built {{< reflink "covidcast" "interactive maps and graphics" >}} to
156152
display our indicators, and better inform the public and decision-makers.</p></li>
157153
<li><p>We’ve developed forecasts of the future spread of the pandemic,
158154
validated them prospectively, and started submitting them to CDC.</p></li>

content/blog/2020-08-26-fb-survey.Rmd

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ We believe that this combination of _detail_ and _scale_
6161
has never before been available in a public health emergency.
6262

6363
We make aggregated data publicly available daily through our
64-
[COVIDcast API](`r blogdown::shortcode_html("apiref", "api/covidcast.html")`),
65-
and visualize it on our [COVIDcast interactive map](`r blogdown::shortcode_html("ref", "covidcast")`).
64+
`r blogdown::shortcode_html("apireflink", "api/covidcast.html", "COVIDcast API")`,
65+
and visualize it on our `r blogdown::shortcode_html("reflink", "covidcast", "COVIDcast interactive map")`.
6666
We also make (fully de-identified) individual survey responses available
6767
to researchers who agree to
6868
[data use terms](https://dataforgood.fb.com/docs/covid-19-symptom-survey-request-for-data-access/).
@@ -174,8 +174,7 @@ package](https://cmu-delphi.github.io/covidcast/covidcastR/).
174174
In all, fetching the data from our API and producing the heatmaps
175175
requires only 15 lines of code.
176176
If you're interested, click the "Code" button to reveal the source.
177-
We'll cover our [R and Python covidcast
178-
packages](`r blogdown::shortcode_html("apiref", "api/covidcast_clients.html")`)
177+
We'll cover our `r blogdown::shortcode_html("apireflink", "api/covidcast_clients.html", "R and Python covidcast packages")`
179178
in a future blog post.
180179

181180
## Why Run These Surveys?
@@ -211,8 +210,7 @@ surveys:
211210
which may be a sizeable fraction of the US population, but certainly not all of
212211
it. We'll also likely see bias because some people on Facebook are more inclined
213212
to take surveys than others. We attempt to correct for both of these biases
214-
using a [statistical reweighting
215-
scheme](`r blogdown::shortcode_html("apiref", "api/covidcast-signals/fb-survey.html#survey-weighting")`),
213+
using a `r blogdown::shortcode_html("apireflink", "api/covidcast-signals/fb-survey.html#survey-weighting", "statistical reweighting scheme")`,
216214
but these corrections aren't perfect.
217215

218216
- Our symptom data is entirely self-reported, in contrast to data
@@ -249,8 +247,7 @@ quantities, in a given location, on a given day:
249247
community_ with COVID-like illness.
250248

251249
Details on how we compute the % CLI and % CLI-in-community estimates can be
252-
found in our [COVIDcast signals
253-
documentation](`r blogdown::shortcode_html("apiref", "api/covidcast-signals/fb-survey.html")`).
250+
found in our `r blogdown::shortcode_html("apireflink", "api/covidcast-signals/fb-survey.html", "COVIDcast signals documentation")`.
254251

255252
The % CLI-in-community indicator has an interesting backstory: it was sort of a
256253
"happy accident" from an experiment we tried with surveys we were running in
@@ -272,10 +269,8 @@ public health. They assured us that lengthening the survey wouldn't hurt the
272269
completion rate too much, and they were right: of the people who complete the
273270
first section, over 85% go on to finish the full survey!
274271

275-
Our [survey documentation
276-
site](`r blogdown::shortcode_html("apiref", "symptom-survey/")`) includes more
277-
details about the survey, including the [full text of every survey
278-
version](`r blogdown::shortcode_html("apiref", "symptom-survey/coding.html")`).
272+
Our `r blogdown::shortcode_html("apireflink", "symptom-survey/", "survey documentation site")` includes more
273+
details about the survey, including the `r blogdown::shortcode_html("apireflink", "symptom-survey/coding.html", "full text of every survey version")`.
279274
And yes, researchers can [request
280275
access](https://dataforgood.fb.com/docs/covid-19-symptom-survey-request-for-data-access/)
281276
to (fully de-identified) individual survey responses for research purposes,
@@ -605,6 +600,5 @@ This new survey is currently being deployed,
605600
and data should become available in the next few weeks.
606601
Detailed data will be available to researchers,
607602
while new aggregates---such as of mask-wearing---will
608-
be made public, as usual, through our [COVIDcast
609-
API](`r blogdown::shortcode_html("apiref", "api/covidcast.html")`)
610-
and [COVIDcast interactive map](`r blogdown::shortcode_html("ref", "covidcast")`).
603+
be made public, as usual, through our `r blogdown::shortcode_html("apireflink", "api/covidcast.html", "COVIDcast API")`
604+
and `r blogdown::shortcode_html("reflink", "covidcast", "COVIDcast interactive map")`.

0 commit comments

Comments
 (0)