Skip to content

verkstedt/verkstedt-through-ages

Repository files navigation

verkstedt.com through the ages

Created during verkstedt’s Open Friday 💚 and licensed under ISC.

Years

Running locally

npx serve .

Contributing

Branches for each year are stacked on top of each other. This is to use git history as a metaphor for the history of the HTML spec. See “diff” links in “Years” section.

This means that if you want to make a change to non–latest year, you’ll need to rebase later years on top of it. Fortunately Git makes it (relatively) simple.

  1. Make sure you have all of the year branches locally.

  2. Switch to the year you want to make changes to and add new commits.

  3. Switch to latest year and run:

    # e.g. if you changed 1992
    git rebase -i --update-refs 1992
    # inspect if everything looks ok:
    git log --oneline --decorate --all
    # push all branches:
    git push --force-with-lease --all

    For a quick explanation about --update-refs, check out part of Scott Chacon’s “So You Think You Know Git Part 2” talk.

Deploying

We deploy to Cloudflare Pages. You can use wrangler for that:

# preview:
npx wrangler pages deploy .
# production:
npx wrangler pages deploy --branch=main .