mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-05 09:26:32 +00:00
Generate documenation (manpages, etc.) from help strings.
This commit is contained in:
16
src/generate_ghostty_1_markdown.zig
Normal file
16
src/generate_ghostty_1_markdown.zig
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user