Generate documenation (manpages, etc.) from help strings.

This commit is contained in:
Jeffrey C. Ollie
2024-01-21 15:07:22 -06:00
parent 83bf6e038e
commit ef09fa89b0
11 changed files with 401 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
const std = @import("std");
const gen = @import("generate_markdown.zig");
pub fn main() !void {
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
const alloc = gpa.allocator();
const writer = std.io.getStdOut().writer();
try gen.substitute(alloc, @embedFile("doc/ghostty_1_header.md"), writer);
try gen.generate_actions(writer);
try gen.generate_config(writer, true);
try gen.substitute(alloc, @embedFile("doc/ghostty_1_footer.md"), writer);
}