umd-mith / mith-static

A static web application developed for the MITH website
http://mith.umd.edu
BSD Zero Clause License
1 stars 3 forks source link

MITH Static "Next" — v0.4.0 🚀 #13

Closed trevormunoz closed 3 months ago

trevormunoz commented 2 years ago

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:

  1. For a static site, Gatsby requires delivering a lot of Javascript to the browser and the ways in which the Javascript we authored gets bundled and loaded remain opaque to me
  2. GraphQL is the heart of Gatsby's approach but for the kinds of sites we build, GraphQL adds a lot of complexity for relatively little pay off.

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:

Things to keep an 👀 on

"Breaking" changes vs. v0.3.x series

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.

netlify[bot] commented 2 years ago

Deploy Preview for mith-static ready!

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...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.