This directory contains the scripts and configuration required to update the opentitan.org public-facing website.
These scripts require that you have hugo and gcloud installed and that your gcloud is configured with the correct GCP project. The production site project can be selected with:
gcloud config set project gold-hybrid-255313
To serve the site locally run the serve.sh
script, which will build and serve the site on localhost:1313, automatically rebuilding pages when they are changed.
To deploy the site use the deploy.sh
script. Specify the environment (either public
or staging
) as the first argument to choose between the two environments. The script takes care of flushing the CDN cache to make sure changes are visible as quickly as possible.