tree: 1fa1647ff35946ea3da309c58cd84099dac1cdce [path history] [tgz]
  1. assets/
  2. content/
  3. data/
  4. layouts/
  5. static/
  6. .gitignore
  7. config.toml
  8. deploy.sh
  9. README.md
  10. serve.sh
site/landing/README.md

Site Infrastructure

This directory contains the scripts and configuration required to update the opentitan.org public-facing website.

Dependencies

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

Serving Locally

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.

Deploying

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.