Automatic upload of my .plan file
- Zig 99.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| src | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| curl.h | ||
| LICENSE | ||
| README | ||
.
.o8
.o888oo .ooooo. .ooooo.
888 d88' `88b d88' `88b
888 888 888 888ooo888
888 . 888 888 888 .o
"888" `Y8bod8P' `Y8bod8P'
A simple single file watcher that integrates with the macOS kqueue syscall. The
purpose of this project is to push changes to a .plan file to bunny.net
"instantly" on save.
Each save uploads the rendered website as `index.html` and an Atom feed as
`atom.xml`. The feed uses `.plan` sections in this form:
```
---
Article title
---
Article content
```
Set `SITE_URL` to the public site URL when it differs from the default
`https://mooremoore.net`.
Article hashes and their last-modified timestamps are stored in
`~/.plan.atom-state`. The state file is replaced only after the updated feed
has uploaded successfully, so unchanged articles keep their original Atom
timestamps across saves and watcher restarts.