diff --git a/.gitignore b/.gitignore index 87174b6..7c046b6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -/public/ +.zig-cache +zig-out \ No newline at end of file diff --git a/README.md b/README.md index 4c4c573..7c460a9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Building -To build this site, you need zine +To build this site, you need zig Just clone the repository ``` @@ -10,7 +10,7 @@ cd flow-control.dev and issue ``` -zine +zig build serve ``` Then visit with your browser the site pointed by the previous command @@ -21,4 +21,4 @@ Powered by [Zine](https://zine-ssg.io/docs/) * [Monospace Web Theme](https://owickstrom.github.io/the-monospace-web/) * [Zine](https://zine-ssg.io/docs/) -* [Flow Control Editor](https://github.com/neurocyte/flow) +* [Flow Control Editor](https://github.com/neurocyte/flow) \ No newline at end of file diff --git a/build.zig b/build.zig new file mode 100644 index 0000000..7b0c08e --- /dev/null +++ b/build.zig @@ -0,0 +1,24 @@ +const std = @import("std"); +const zine = @import("zine"); + +pub fn build(b: *std.Build) !void { + _ = zine.website(b, .{ + .title = "Flow Control: a progammer's text editor", + .host_url = "https://flow-control.dev", + .content_dir_path = "content", + .layouts_dir_path = "layouts", + .assets_dir_path = "assets", + }); + + const install_step = b.addInstallFile(b.path("install"), "install"); + b.getInstallStep().dependOn(&install_step.step); + + const install_key = b.addInstallFile(b.path("public.gpg"), "public.gpg"); + b.getInstallStep().dependOn(&install_key.step); + + const install_font = b.addInstallFile(b.path("assets/fonts/AcPlus_IBM_VGA_9x16.ttf"), "fonts/AcPlus_IBM_VGA_9x16.ttf"); + b.getInstallStep().dependOn(&install_font.step); + + const install_font2 = b.addInstallFile(b.path("assets/fonts/Iosevka-Regular.woff2"), "fonts/Iosevka-Regular.woff2"); + b.getInstallStep().dependOn(&install_font2.step); +} diff --git a/build.zig.zon b/build.zig.zon new file mode 100644 index 0000000..6096d27 --- /dev/null +++ b/build.zig.zon @@ -0,0 +1,11 @@ +.{ + .name = "Zine Website", + .version = "0.0.0", + .dependencies = .{ + .zine = .{ + .url = "git+https://github.com/kristoff-it/zine?ref=v0.8.0#ec0f549654a4f7183d4520227b6748bba7ade98e", + .hash = "122049c99f3faaaff159cdccb3792d1518b10534e8225e26e5b24a369d325b0ebdc5", + }, + }, + .paths = .{"."}, +} \ No newline at end of file diff --git a/content/index.smd b/content/index.smd index b17ed62..cac4bb3 100644 --- a/content/index.smd +++ b/content/index.smd @@ -53,8 +53,8 @@ curl -fsSL https://flow-control.dev/install | sh -s -- --nightly --verify ### Prebuilt Binaries -- Stable: [Releases](https://github.com/neurocyte/flow/releases/latest) -- Nightly: [Nightly Builds](https://github.com/neurocyte/flow-nightly/releases/latest) +- Stable: [Releases](https://github.com/neurocyte/flow/releases) +- Nightly: [Nightly Builds](https://github.com/neurocyte/flow-nightly/releases) Or check your favorite local system package repository. diff --git a/assets/install b/install similarity index 100% rename from assets/install rename to install diff --git a/layouts/templates/base.shtml b/layouts/templates/base.shtml index 72d2469..4d0f4ca 100644 --- a/layouts/templates/base.shtml +++ b/layouts/templates/base.shtml @@ -12,23 +12,17 @@

diff --git a/assets/public.gpg b/public.gpg similarity index 100% rename from assets/public.gpg rename to public.gpg diff --git a/zine.ziggy b/zine.ziggy deleted file mode 100644 index 5a9965a..0000000 --- a/zine.ziggy +++ /dev/null @@ -1,13 +0,0 @@ -Site { - .title = "Flow Control: a progammer's text editor", - .host_url = "https://flow-control.dev", - .content_dir_path = "content", - .layouts_dir_path = "layouts", - .assets_dir_path = "assets", - .static_assets = [ - "install", - "public.gpg", - "fonts/AcPlus_IBM_VGA_9x16.ttf", - "fonts/Iosevka-Regular.woff2", - ], -}