commit | 90ada2e550d4e3bce2c59da0c9eacb3e7b9a2a67 | [log] [tgz] |
---|---|---|
author | Dirk Pranke <dpranke@google.com> | Thu Oct 21 01:40:10 2021 |
committer | chromium-website-scoped@luci-project-accounts.iam.gserviceaccount.com <chromium-website-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Oct 21 19:37:33 2021 |
tree | 594902ae58063920928a3d54762d5024fe3b5189 | |
parent | 0a4416d8e5d20e767794ed50412300c47ff5c99d [diff] |
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 Reviewed-on: https://chromium-review.googlesource.com/c/experimental/website/+/3235832 Commit-Queue: Dirk Pranke <dpranke@google.com> Reviewed-by: Struan Shrimpton <sshrimp@google.com>
This Git repo contains the source content for www.chromium.org.
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/CONTRIBUTING.md if you wish to contribute to the site.