commit | 2381c9d8305fee4a2d02fab5cbee46d209f50483 | [log] [tgz] |
---|---|---|
author | Dirk Pranke <dpranke@google.com> | Thu Oct 21 02:00:12 2021 |
committer | chromium-website-scoped@luci-project-accounts.iam.gserviceaccount.com <chromium-website-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Oct 21 19:44:04 2021 |
tree | c6179c9332b4465f301ca7a46f89cb5083e32bad | |
parent | 90ada2e550d4e3bce2c59da0c9eacb3e7b9a2a67 [diff] |
Fix how images are exported to markdown. The prior export code was relying on a non-standard markdown extension to set an image's width and height. This CL changes the exporter to use <img> tags instead of the markdown syntax; this allows us to serve up images with proper width and heights using standard syntax. While you don't actually have to specify the width= and height= in an <img> tag if you want to use the image's actual width and height, this CL makes no attempt to figure out the image dimensions on the fly. A subsequent CL could add that logic, and that would make things a bit cleaner. Change-Id: Icce6c67cc0b266c45e29e760db45b30c8f57cf5c Reviewed-on: https://chromium-review.googlesource.com/c/experimental/website/+/3233343 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.