Skip to content

Commit 980a561

Browse files
committed
doc: Improve doc comment formatting throughout the entire codebase
1 parent f5f3d31 commit 980a561

File tree

5 files changed

+94
-161
lines changed

5 files changed

+94
-161
lines changed

Diff for: build.zig

+1-29
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,5 @@ pub fn build(b: *std.Build) void {
2323
test_step.dependOn(&run_tests.step);
2424
}
2525

26-
const readme_step = b.step("readme", "Remake README.");
27-
const readme = readMeStep(b);
28-
readme_step.dependOn(readme);
29-
30-
const all_step = b.step("all", "Build everything and runs all tests");
31-
all_step.dependOn(readme_step);
32-
all_step.dependOn(test_step);
33-
34-
b.default_step.dependOn(all_step);
35-
}
36-
37-
fn readMeStep(b: *std.Build) *std.Build.Step {
38-
const s = b.allocator.create(std.Build.Step) catch unreachable;
39-
s.* = std.Build.Step.init(.{
40-
.id = .custom,
41-
.name = "ReadMeStep",
42-
.owner = b,
43-
.makeFn = struct {
44-
fn make(_: *std.Build.Step, _: std.Build.Step.MakeOptions) anyerror!void {
45-
@setEvalBranchQuota(10000);
46-
const file = try std.fs.cwd().createFile("README.md", .{});
47-
const writer = file.writer();
48-
try writer.print(@embedFile("example/README.md.template"), .{
49-
@embedFile("example/rgb.zig"),
50-
});
51-
}
52-
}.make,
53-
});
54-
return s;
26+
b.default_step.dependOn(test_step);
5527
}

Diff for: example/README.md.template

-10
This file was deleted.

0 commit comments

Comments
 (0)