Skip to content

Commit 95d72a6

Browse files
authored
Merge pull request #258 from cmu-delphi/sgratzl/menu
COVIDcast menu changes
2 parents f9ba3c5 + fe3f91e commit 95d72a6

File tree

10 files changed

+1066
-6706
lines changed

10 files changed

+1066
-6706
lines changed

.github/workflows/ci_fast.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ jobs:
1616
# submodules: true # Fetch Hugo themes (true OR recursive)
1717
fetch-depth: 3 # Fetch all history for .GitInfo and .Lastmod
1818

19-
- uses: actions/setup-node@v1
19+
- uses: actions/setup-node@v2.1.5
2020
with:
21-
node-version: "12"
21+
node-version: "14"
2222
- uses: actions/cache@v2
2323
with:
2424
path: ~/.npm
25-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
25+
key: ${{ runner.os }}-node3-${{ hashFiles('**/package-lock.json') }}
2626
restore-keys: |
27-
${{ runner.os }}-node-
27+
${{ runner.os }}-node3-
2828
- run: npm ci
2929
- name: Lint
3030
run: npm run lint

config.toml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,22 @@ relativeURLs = false
3434
identifier = "covidcast"
3535
name = "COVIDcast"
3636
pre = "solid/map"
37-
url = "/covidcast"
37+
url = "/covidcast/"
3838
weight = 2
3939
[[menu.main]]
4040
parent = "covidcast"
41-
name = "About"
42-
url = "/covidcast"
41+
name = "COVIDcast Overview"
42+
url = "/covidcast/"
4343
weight = 1
4444
[[menu.main]]
4545
parent = "covidcast"
46-
name = "Indicator Overview"
47-
url = "/covidcast/overview"
46+
name = "Region Summary"
47+
url = "/covidcast/summary"
4848
weight = 2
4949
[[menu.main]]
5050
parent = "covidcast"
51-
name = "Indicator Details"
52-
url = "/covidcast/indicator"
53-
weight = 3
54-
[[menu.main]]
55-
parent = "covidcast"
56-
name = "Old Map Overview"
57-
url = "/covidcast/old"
51+
name = "Classic Map"
52+
url = "/covidcast/classic"
5853
weight = 4
5954
[[menu.main]]
6055
parent = "covidcast"
@@ -83,10 +78,20 @@ relativeURLs = false
8378
weight = 90
8479
[[menu.main]]
8580
identifier = "flu"
86-
name = "Flu and Other Diseases"
81+
name = "Tools and Resources"
8782
pre = "solid/virus"
8883
url = "/flu"
8984
weight = 3
85+
[[menu.main]]
86+
parent = "flu"
87+
name = "Signals Dashboard"
88+
url = "/signals-dashboard/"
89+
weight = 10
90+
[[menu.main]]
91+
parent = "flu"
92+
name = "Forecast Evaluator"
93+
url = "/forecast-eval/"
94+
weight = 20
9095
[[menu.main]]
9196
identifier = "blog"
9297
name = "Blog"
@@ -116,4 +121,5 @@ relativeURLs = false
116121
feedbackLikelihoodDesktop = 1
117122
feedbackDelayMin = 45 # in sec
118123
feedbackDelayMax = 180 # in sec
119-
feedbackDuration = 60 # show it for 60sec
124+
feedbackDuration = 60 # show it for 60sec
125+
highlightLinks = "/covidcast/,/covidcast/summary,/signals-dashboard/,/forecast-eval/"

content/covidcast/old.md renamed to content/covidcast/classic.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: COVIDcast Map Overview
3-
linkTitle: Old Map Overview
2+
title: Classic COVIDcast
3+
linkTitle: Classic COVIDcast
44
description: COVIDcast tracks and forecasts the spread of COVID-19. By Carnegie Mellon's Delphi Research Group.
55
layout: covidcast_app
6-
app_mode: old
6+
app_mode: classic
77
order: 3
88
heroImage: /images/landing-page/hero-images/covidcast_withfill.jpg
99
feedback: true

content/covidcast/overview.md renamed to content/covidcast/summary.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: COVIDcast
3-
linkTitle: About COVIDcast
2+
title: Location Summary
3+
linkTitle: Location Summary
44
description: COVIDcast tracks and forecasts the spread of COVID-19. By Carnegie Mellon's Delphi Research Group.
55
layout: covidcast_app
6-
app_mode: overview
6+
app_mode: summary
77
order: 3
88
heroImage: /images/landing-page/hero-images/covidcast_withfill.jpg
99
feedback: true

netlify.toml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,25 @@ publish = "public"
33
command = "npm ci && hugo --gc --minify -b $DEPLOY_PRIME_URL"
44

55
[context.production.environment]
6-
HUGO_VERSION = "0.78.0"
6+
HUGO_VERSION = "0.81.0"
77
HUGO_ENV = "production"
8+
NODE_VERSION = "14.16.0"
9+
NPM_VERSION = "6.14.11"
810

911
[context.deploy-preview]
1012
command = "npm ci && hugo --gc --minify --buildDrafts --buildFuture -b $DEPLOY_PRIME_URL"
1113

1214
[context.deploy-preview.environment]
13-
HUGO_VERSION = "0.78.0"
15+
HUGO_VERSION = "0.81.0"
1416
HUGO_ENABLEGITINFO = "true"
17+
NODE_VERSION = "14.16.0"
18+
NPM_VERSION = "6.14.11"
1519

1620
[context.branch-deploy]
1721
command = "npm ci && hugo --gc --minify -b $DEPLOY_PRIME_URL"
1822

1923
[context.branch-deploy.environment]
20-
HUGO_VERSION = "0.78.0"
24+
HUGO_VERSION = "0.81.0"
2125
HUGO_ENABLEGITINFO = "true"
26+
NODE_VERSION = "14.16.0"
27+
NPM_VERSION = "6.14.11"

0 commit comments

Comments
 (0)