blog/README.md

37 lines
874 B
Markdown
Raw Permalink Normal View History

2024-05-26 01:01:55 -07:00
# gradient ascent - yet another developer blog
2024-05-22 22:17:41 -07:00
2024-05-26 01:01:55 -07:00
This repository hosts the source code for my blog, written in Haskell and
powered by [hakyll](https://jaspervdj.be/hakyll/) and
[pandoc](https://pandoc.org). Builds are managed by [nix](https://nixos.org).
This repo is merely the source code, the actual site is hosted at
[blog.youwen.dev](https://blog.youwen.dev).
2024-05-22 22:17:41 -07:00
2024-05-24 02:32:13 -07:00
To build locally, install `nix` and enable flakes.
2024-05-22 22:17:41 -07:00
2024-05-24 02:32:13 -07:00
```sh
nix build
2024-05-22 22:17:41 -07:00
2024-05-24 02:32:13 -07:00
nix run . watch
```
2024-05-26 01:01:55 -07:00
This starts a hot reload server at `localhost:8000`.
```sh
nix run . build
```
This builds a local production version.
If any updates are made to the JavaScript or CSS, you will need to run
```sh
pnpm install # only the first time
pnpm build
```
This is because I still haven't figured out how to integrate the `rollup` build
pipeline with `nix`. Since the CSS and JS are minimal, I just do it manually for
now.