diff --git a/build.zig b/build.zig index 9f5253b0c..472adedba 100644 --- a/build.zig +++ b/build.zig @@ -102,10 +102,10 @@ pub fn build(b: *std.Build) !void { "Name of the conformance app to run with 'run' option.", ); - config.documentation = b.option( + const emit_docs = b.option( bool, - "documentation", - "Build generated documentation", + "emit-docs", + "Build and install auto-generated documentation", ) orelse true; const emit_test_exe = b.option( @@ -421,7 +421,7 @@ pub fn build(b: *std.Build) !void { } // Documenation - if (config.documentation) buildDocumentation(b, version); + if (emit_docs) buildDocumentation(b, version); // App (Linux) if (target.result.os.tag == .linux and config.app_runtime != .none) { @@ -1166,14 +1166,8 @@ fn buildDocumentation( name: []const u8, section: []const u8, }{ - .{ - .name = "ghostty", - .section = "1", - }, - .{ - .name = "ghostty", - .section = "5", - }, + .{ .name = "ghostty", .section = "1" }, + .{ .name = "ghostty", .section = "5" }, }; inline for (manpages) |manpage| { diff --git a/src/build_config.zig b/src/build_config.zig index ae324a6d7..6a9a55085 100644 --- a/src/build_config.zig +++ b/src/build_config.zig @@ -21,7 +21,6 @@ pub const BuildConfig = struct { static: bool = false, flatpak: bool = false, libadwaita: bool = false, - documentation: bool = true, app_runtime: apprt.Runtime = .none, renderer: rendererpkg.Impl = .opengl, font_backend: font.Backend = .freetype,