feat(content): routing to provided .blog paths
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m7s

This is a starting point to dynamically loading `markdown` files as blog
entries. With this change the *doc/about.md* and *doc/blog.md* files
are no longer builded into the executable and instead read from the
filesystem during runtime (along with the new test file *doc/test.md*).
This commit is contained in:
2025-11-01 22:36:48 +01:00
parent e4c3f69821
commit a877ac3e7d
7 changed files with 138 additions and 59 deletions
-12
View File
@@ -26,18 +26,6 @@ pub fn build(b: *std.Build) void {
.imports = &.{
.{ .name = "zterm", .module = zterm.module("zterm") },
.{ .name = "zlog", .module = zlog.module("zlog") },
.{
.name = "about",
.module = b.createModule(.{
.root_source_file = b.path("doc/about.md"),
}),
},
.{
.name = "blog",
.module = b.createModule(.{
.root_source_file = b.path("doc/blog.md"),
}),
},
},
}),
});