No description
  • C 84.3%
  • Zig 8.9%
  • CSS 2.6%
  • HTML 2%
  • Shell 0.8%
  • Other 1.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-27 05:39:14 +03:00
blog Added docker/podman files 2026-08-27 05:39:14 +03:00
zettp Added docker/podman files 2026-08-27 05:39:14 +03:00
zettp-kani Added docker/podman files 2026-08-27 05:39:14 +03:00
.dockerignore Added docker/podman files 2026-08-27 05:39:14 +03:00
.gitignore .css improvements 2026-08-25 12:20:43 +03:00
docker-compose.dev.yml Added docker/podman files 2026-08-27 05:39:14 +03:00
docker-compose.yml Added docker/podman files 2026-08-27 05:39:14 +03:00
docker-readme.md Added docker/podman files 2026-08-27 05:39:14 +03:00
Dockerfile Added docker/podman files 2026-08-27 05:39:14 +03:00
Makefile .css improvements 2026-08-25 12:19:19 +03:00
README.md Added docker/podman files 2026-08-27 05:39:14 +03:00
update.sh 0.1 2026-08-25 07:00:07 +03:00

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