Makko, the people-oriented static site generator made for blogging. forge.starlightnet.work/Team/Makko
ssg static-site-generator makko starlight-network

Fixed regenerate mode, added to schema.

n 98264a90 66ff867a

+5 -1
+4
makko.schema.json
··· 21 21 "symlinks_enabled": { 22 22 "type": "boolean" 23 23 }, 24 + "cleanup_mode": { 25 + "type": "string", 26 + "enum": ["regenerate", "none"] 27 + }, 24 28 "source": { 25 29 "type": "string" 26 30 },
+1 -1
src/Makko.zig
··· 146 146 147 147 if (!helper.exists(root_dir, paths.output)) 148 148 try root_dir.makeDir(paths.output); 149 - const output_dir = try root_dir.openDir(paths.output, .{}); 149 + const output_dir = try root_dir.openDir(paths.output, .{ .iterate = true }); 150 150 151 151 if (paths.symlinks_enabled and !helper.supports_symlinks) { 152 152 log.warn(