const std = @import("std"); const Callbacks = @import("Callbacks.zig"); @"$schema": ?[]const u8 = "https://makko.starlightnet.work/schema.json", title: []const u8, description: []const u8, url: []const u8, paths: struct { symlinks_enabled: bool = false, cleanup_mode: enum { none, regenerate } = .none, source: []const u8, templates: []const u8, output: []const u8, }, feeds: struct { html: ?[]const u8 = "index.html", atom: ?[]const u8 = "feed.atom", rss: ?[]const u8 = "feed.rss", } = .{}, custom: std.json.Value = .{ .null = {} }, callbacks: Callbacks = .{}, hashes: std.json.Value = .{ .null = {} }, pub const example = \\{ \\ "$schema": "https://makko.starlightnet.work/schema.json", \\ \\ "title": "My Makko blog!", \\ "url": "https://yourweb.site", \\ "description": "My very own blog made with Makko!", \\ \\ "paths": { \\ "source": "blog/", \\ "templates": "templates/", \\ "output": "web/" \\ }, \\ \\ "feeds": { \\ "html": "index.html", \\ "rss": "feed.rss", \\ "atom": "feed.atom" \\ }, \\ \\ "custom": { \\ "hey1": "You can add anything here, then reference it in your templates", \\ "hey2": "or markdown files like this: {{custom.hey1}}, {{custom.hey2}}", \\ \\ "note": "Any JSON input through STDIN will be overlaid on top of this." \\ } \\} ;