Closed trevormunoz closed 3 months ago
Name | Link |
---|---|
Latest commit | 1be279e5700d7df144fc66d45cd4c584426b3b5c |
Latest deploy log | https://app.netlify.com/sites/mith-static/deploys/62d86bccd0144900082d70f4 |
Deploy Preview | https://deploy-preview-13--mith-static.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
v0.4.0
This pull request demonstrates a big overhaul to how the static website for MITH gets built—switching from Gatsby to Astro. This PR showcases a version of the MITH site built with Astro that is comparable to the current public release (as of late October 2021) and the PR can remain open for as long as we need to align around the new approach.
Background and motivation
The MITH team has invested a fair bit of effort into learning and using Gatsby. However, after working extensively on two Gatsby-powered sites recently (this site, and Airwaves), I encountered a couple of repeated pain points:
Astro is a new (pre-1.0 release) static site generator and "meta-framework" for building sites with Javascript. Astro's core ideas of
meant that (despite its newness), Astro potentially addressed the pain points above very well.
As an experiment, I decided to see what it would be like to re-implement a very simple site like
mith-static
using Astro.Positive aspects
This PR exists because I found that it was possible to be extremely productive in Astro. Some things I have particularly liked:
<style>
elements right in components also makes component scoped CSS the default. Being unused to having so much scoped CSS this produced a few "gotchas" but overall was a net benefit.<Markdown>
component that makes it easier to drop into authoring content in MarkdownThings to keep an 👀 on
.astro
files are works in progress (the former basically working, the latter more buggy still)."Breaking" changes vs. v0.3.x series
/research/$slug
to/research/projects/$slug
and/research/projects/
will need a redirect to/research/
I think this change should give us a relatively clean foundation for future content and feature updates to the MITH site and enable us to maintain high productivity for addressing significant items on the MITH website wish list.