- C 84.3%
- Zig 8.9%
- CSS 2.6%
- HTML 2%
- Shell 0.8%
- Other 1.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| blog | ||
| zettp | ||
| zettp-kani | ||
| .dockerignore | ||
| .gitignore | ||
| docker-compose.dev.yml | ||
| docker-compose.yml | ||
| docker-readme.md | ||
| Dockerfile | ||
| Makefile | ||
| README.md | ||
| update.sh | ||
Zettp-all
This repository is a helper to get you started on the zettp + zettp-kani project
Modules
| Module | Role | link |
|---|---|---|
| Zettp | Http server | https://codeberg.org/Katacc/zettp |
| Zettp-kani | Static site generator | https://codeberg.org/Katacc/zettp-kani |
Requirements
| Tech | Version |
|---|---|
| Zig | 0.16.0 |
| gcc +glibc(or musl) | gnu23 (gcc >= 14.2) |
How to use
make # (or 'make force' to force recretion of .html files)
make run
# Or (clean build generate run)
make cr
# Cr but force regeneration of .html files
make cr-force
Md files
I have configured the template to use the md files from the blog/ folder.
To add mode files, drop your md files there and add the files into zettp-kani/config.h
Configuring
Static site generation
All static site generation configuration can be found from zettp-kani/config.h
Zttp
All zttp configurations can be found from zettp/src/html,
refer to the zettp repo for more information.
Making changes, adding files etc
After adding or changing .md files, or making changes to any configuration files (.h, .c or .zig), you need to rebuild and rerun the server. Easy way to rebuild everything and generate new .html files without overriding allready presents ones:
make cr
make cr = make clean build ssg run.
if you need to force regenration of old .html files, do
make cr-force
Note
Changes to .html or .css files does not require rebuilds or restarts, those update in realtime.
Updating
To update zettp and zettp-kani, I have included a handy update script. It only updates the core files, user files are not affected. To run it:
make update
Docker/Podman
More information on how to run the server with docker/podman, see docker-readme