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