-
Notifications
You must be signed in to change notification settings - Fork 94
Editing the hub website
The hub website is an rmarkdown website hosted at https://www.github.com/covid19-forecast-hub-europe/covid19-forecast-hub-europe-website.
In rmarkdown websites, each page is a Rmarkdown (.Rmd
) document and the website navigation bar and global parameters are specified in _site.yml
.
Once you commit and push a change in a .Rmd
document or _site.yml
, the changes will be automatically deployed after a couple of minutes.
To edit a specific page, simply edit the related .Rmd
file. For example, if you want to modify the "Background" page, edit background.Rmd
.
Similarly, if you want to edit the disclaimer on the "Visualisation" page, edit visualisation.Rmd
, and more specifically, the text contained in between <p id="limitation">...</p>
.
To unlist a page from the navigation bar, remove it from the navbar
field in _site.yml
, as demonstrated below (example to remove the "Visualisation" page):
When unlisted, the page will typically not be visited because it's not linked from anywhere. However, users with direct links (and in some cases, search engines) can still access it directly. To remove the page entirely, remove the related .Rmd
file (e.g., visualisation.Rmd
in the case of the "Visualisation" page.)
The forecast hub framework has an additional unusual complication: reports are generated from .Rmd
location in the current GitHub repository, within the code/reports/
folder.
Reports are automatically rendered:
- Preparing to submit
- Forecasting
- Submitting
- Other
- Forecast evaluation and ensemble building
- Editing the website
- Creation of an equally weighted ensemble forecast
- Merging weekly submissions