Rewrite URLs in export to not use the '/_/rsrc' directory.

Sites appears to store all images and other assets both next
to the content files and in a separate '/_/rsrc' directory
hierarchy; I don't know why it does this.

However, after checking, the two copies of the files appear to
always be identical, at least in our case, which means that
we should be able to delete the '/_/rsrc' copy and rewrite the
URLs to just reference the files that are next to the content.

This *significantly* reduces the size of the tree :).

Bug: 1260477
Change-Id: Icaab53800c4b1005483ad87b63f55765ff685d41
Commit-Queue: Dirk Pranke <>
Reviewed-by: Struan Shrimpton <>
1276 files changed
tree: 594902ae58063920928a3d54762d5024fe3b5189
  1. docs/
  2. infra/
  3. scripts/
  4. site/
  5. third_party/
  6. .eleventy.js
  7. .firebaserc
  8. .gclient
  9. .gitignore
  10. .vpython3
  12. DEPS
  13. firebase.json
  14. node_modules.tar.gz.sha1
  15. npmw
  16. OWNERS
  17. package-lock.json
  18. package.json

Source code for

This Git repo contains the source content for

NOTE: 2021-10-19. This is not (yet) actually true. This is a work-in-progress repo that we plan to move to.

The website is implemented by serving static content (mostly Markdown files) that is translated / built ahead of time into HTML using the Eleventy static site generator (which is written in Node/JS) and deployed onto Firebase Cloud Hosting.

The Markdown is translated using a single extremely simple Nunjucks template and the site is served with a single basic Sass/SCSS stylesheet (using the Node/NPM library version of Sass).

Large objects (PDFs, big images, etc.) are stored in a Google Cloud Storage bucket, indexed by SHA-1 checksums that are committed into this repo.

See //docs/ if you wish to contribute to the site.