Skip to content

Repository files navigation

archival-website

A template repo for making archival websites

Prerequisites

To simply edit and view this website, there are technically no dependencies. However, in most practical cases you'll at least need git so that you can clone this repo and push it somewhere to be deployed.

This is the version control system we'll use to edit the website. You'll need it locally - it comes preinstalled on Mac OS and most linux distros. You can see if you already have it by opening a terminal and running git --version.

If you plan on using typescript and/or tailwind css, you'll also need node.js to build your site. You can find installers here:

You'll need basic familiarity with html to edit and create pages. Archival uses the liquid templating language (https://liquidmarkup.org/) to generate dynamic content.

For more information on how archival works, see the full documentation:

https://docs.archival.dev

How to build a website with this repo

  1. Click the "Use this template" button at the top of this repo in github:

Use this template button

  1. Clone the resulting repo using git clone <your-repo-url>

Clone button

  1. inside the repo, run npm i to install js dependencies (if you're using compiled js or css).

  2. if you're using compiled js/css, run npm run build. Otherwise, run bin/archival run - either command will print a server location where you can view your website, which will automatically rebuild whenever you change a file.

How to deploy this website

  1. In netlify, cloudflare or any other git-based host, create a new site that deploys from this repository.

  2. If you're using typescript and/or tailwind, set the build command to npm run build. Otherwise, set it to bin/archival build.

  3. Add bin/archival build to the build steps for the repo and dist as the folder to deploy.

More questions?

Head to https://archival.dev for more documentation and help.

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages