Skip to content

Commit

Permalink
enable supermd docgen
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoff-it committed Aug 29, 2024
1 parent 9141698 commit cb659d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 29 deletions.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ pub fn scriptyReferenceDocs(
}
{
const run_docgen = project.addRunArtifact(
zine_dep.artifact("smd_docgen"),
zine_dep.builder.dependency("supermd", .{}).artifact("docgen"),
);

const reference_md = run_docgen.addOutputFileArg(
Expand Down
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
.version = "0.0.0",
.dependencies = .{
.supermd = .{
.url = "git+https://github.com/kristoff-it/supermd#125305aa31ef41e9ad9c3fcd5e72ec9219c5206a",
.hash = "1220998444347b7a7f9535b12f00ceb87bd33499185ad0eabf4f3c10182715e50bb2",
.url = "git+https://github.com/kristoff-it/supermd#fc98183b42df8d08a7a0e21fd5ea64a4b00af0c6",
.hash = "1220c44dd5e4927fd1d379205b2d3a94cb9b6ae605c933924be91f19f9374aee0b58",
},
.scripty = .{
.url = "git+https://github.com/kristoff-it/scripty#df8c11380f9e9bec34809f2242fb116d27cf39d6",
Expand Down
26 changes: 0 additions & 26 deletions build/tools.zig
Original file line number Diff line number Diff line change
Expand Up @@ -111,32 +111,6 @@ pub fn build(b: *std.Build) !void {
shtml_docgen.root_module.addImport("ziggy", ziggy);
b.installArtifact(shtml_docgen);

const smd_docgen = b.addExecutable(.{
.name = "smd_docgen",
.root_source_file = b.path("supermd/src/docgen.zig"),
.target = target,
.optimize = .Debug,
});
smd_docgen.root_module.addImport("zeit", zeit);
smd_docgen.root_module.addImport("ziggy", ziggy);
smd_docgen.root_module.addImport("scripty", scripty);
b.installArtifact(smd_docgen);

// const md_renderer = b.addExecutable(.{
// .name = "markdown-renderer",
// .root_source_file = b.path("src/exes/markdown-renderer.zig"),
// .target = b.resolveTargetQuery(.{}),
// .optimize = optimize,
// });

// md_renderer.root_module.addImport("zine", zine);
// md_renderer.root_module.addImport("ziggy", ziggy.module("ziggy"));
// md_renderer.root_module.addImport("zeit", zeit.module("zeit"));
// md_renderer.root_module.addImport("syntax", syntax.module("syntax"));
// md_renderer.root_module.addImport("treez", ts.module("treez"));

// b.installArtifact(md_renderer);

if (b.option(
bool,
"fuzz",
Expand Down

0 comments on commit cb659d7

Please sign in to comment.