You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(build): nest static-site generator under cook build web (#348)
* refactor(build): nest static-site generator under `cook build web`
Restructures the `cook build` command as a parent that dispatches to
named subcommands, with `web` as the first (and currently only) target.
This carves out room for future build outputs (e.g. printable
cookbooks) without further reshaping the CLI surface.
Breaking change: `cook build` invocations must now specify the target,
e.g. `cook build web` instead of `cook build`.
* test: update help-output snapshots for new build short description
Copy file name to clipboardExpand all lines: docs/build.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,15 @@
1
1
# Build Command
2
2
3
+
The `cook build` command groups artifact-generation subcommands. Today it offers `web` for static-site generation; future targets (e.g. cookbooks) will live alongside it.
4
+
5
+
## `cook build web`
6
+
3
7
Generate a self-contained static website from your recipe collection. The output mirrors `cook server`'s browsing experience but ships as plain HTML, CSS, and JS — no Rust process needed at runtime, so it can be hosted on GitHub Pages, Netlify, S3, or opened directly via `file://`.
0 commit comments