mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 05:20:29 +00:00
build: shuffle files around for mdgen
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const std = @import("std");
|
||||
const Config = @import("config/Config.zig");
|
||||
const Action = @import("cli/action.zig").Action;
|
||||
const Config = @import("../../config/Config.zig");
|
||||
const Action = @import("../../cli/action.zig").Action;
|
||||
const help_strings = @import("help_strings");
|
||||
const build_options = @import("build_options");
|
||||
|
||||
@@ -1,16 +1,13 @@
|
||||
const std = @import("std");
|
||||
const gen = @import("generate_markdown.zig");
|
||||
const gen = @import("build/mdgen/mdgen.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.substitute(alloc, @embedFile("build/mdgen/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);
|
||||
try gen.substitute(alloc, @embedFile("build/mdgen/ghostty_1_footer.md"), writer);
|
||||
}
|
||||
@@ -1,15 +1,12 @@
|
||||
const std = @import("std");
|
||||
const gen = @import("generate_markdown.zig");
|
||||
const gen = @import("build/mdgen/mdgen.zig");
|
||||
|
||||
pub fn main() !void {
|
||||
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
|
||||
const alloc = gpa.allocator();
|
||||
|
||||
const output = std.io.getStdOut().writer();
|
||||
|
||||
try gen.substitute(alloc, @embedFile("doc/ghostty_5_header.md"), output);
|
||||
|
||||
try gen.substitute(alloc, @embedFile("build/mdgen/ghostty_5_header.md"), output);
|
||||
try gen.generate_config(output, false);
|
||||
|
||||
try gen.substitute(alloc, @embedFile("doc/ghostty_5_footer.md"), output);
|
||||
try gen.substitute(alloc, @embedFile("build/mdgen/ghostty_5_footer.md"), output);
|
||||
}
|
||||
Reference in New Issue
Block a user