-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.zig
82 lines (78 loc) · 3.15 KB
/
build.zig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
const std = @import("std");
const zine = @import("zine");
pub fn build(b: *std.Build) !void {
zine.website(b, .{
.title = "Zine - Static Site Generator",
.host_url = "https://zine-ssg.io",
.layouts_dir_path = "layouts",
.content_dir_path = "content",
.assets_dir_path = "assets",
.static_assets = &.{
"CNAME",
// This asset is referenced in some inlined HTML in markdown
// which Zine is not yet able to analyze so as a temporary
// hack we mark it as a static asset.
"vscode-autoformatting.mp4",
// Fonts referenced in CSS files
"fonts/BebasNeue-Regular.ttf",
"fonts/Merriweather-Black.ttf",
"fonts/Merriweather-BlackItalic.ttf",
"fonts/Merriweather-Bold.ttf",
"fonts/Merriweather-BoldItalic.ttf",
"fonts/Merriweather-Italic.ttf",
"fonts/Merriweather-Light.ttf",
"fonts/Merriweather-LightItalic.ttf",
"fonts/Merriweather-Regular.ttf",
"fonts/FiraCode-Bold.woff",
"fonts/FiraCode-Bold.woff2",
"fonts/FiraCode-Light.woff",
"fonts/FiraCode-Light.woff2",
"fonts/FiraCode-Medium.woff",
"fonts/FiraCode-Medium.woff2",
"fonts/FiraCode-Regular.woff",
"fonts/FiraCode-Regular.woff2",
"fonts/FiraCode-SemiBold.woff",
"fonts/FiraCode-SemiBold.woff2",
"fonts/FiraCode-VF.woff",
"fonts/FiraCode-VF.woff2",
"fonts/jbm/JetBrainsMono-Bold.woff2",
"fonts/jbm/JetBrainsMono-BoldItalic.woff2",
"fonts/jbm/JetBrainsMono-ExtraBold.woff2",
"fonts/jbm/JetBrainsMono-ExtraBoldItalic.woff2",
"fonts/jbm/JetBrainsMono-ExtraLight.woff2",
"fonts/jbm/JetBrainsMono-ExtraLightItalic.woff2",
"fonts/jbm/JetBrainsMono-Italic.woff2",
"fonts/jbm/JetBrainsMono-Light.woff2",
"fonts/jbm/JetBrainsMono-LightItalic.woff2",
"fonts/jbm/JetBrainsMono-Medium.woff2",
"fonts/jbm/JetBrainsMono-MediumItalic.woff2",
"fonts/jbm/JetBrainsMono-Regular.woff2",
"fonts/jbm/JetBrainsMono-SemiBold.woff2",
"fonts/jbm/JetBrainsMono-SemiBoldItalic.woff2",
"fonts/jbm/JetBrainsMono-Thin.woff2",
"fonts/jbm/JetBrainsMono-ThinItalic.woff2",
},
.build_assets = &.{
.{
.name = "zon",
.lp = b.path("build.zig.zon"),
},
.{
.name = "frontmatter",
.lp = b.dependency("zine", .{}).path(
"frontmatter.ziggy-schema",
),
},
},
.debug = true,
});
// This line creates a build step that generates an updated
// Scripty reference file. Other sites will not need this
// most probably, but at least it's an example of how Zine
// can integrate neatly with other Zig build steps.
zine.scriptyReferenceDocs(
b,
"content/docs/superhtml/scripty.smd",
"content/docs/supermd/scripty.smd",
);
}