2023-03-28 02:34:46 +00:00
|
|
|
.PHONY: all clean doc-watch doc-dependencies
|
2023-03-23 18:32:34 +00:00
|
|
|
|
2023-03-28 02:34:46 +00:00
|
|
|
all:
|
2023-03-23 18:32:34 +00:00
|
|
|
|
2023-03-28 02:34:46 +00:00
|
|
|
doc-watch:
|
|
|
|
mdbook serve docs --port 8100 --hostname 0.0.0.0
|
2023-03-23 18:32:34 +00:00
|
|
|
|
2023-03-28 02:34:46 +00:00
|
|
|
doc-dependencies: docs/src/generated/spec/index.md
|
|
|
|
|
|
|
|
generated/spec/meta.schema.json: spec/meta.schema.yml
|
|
|
|
yq . $< > $@
|
|
|
|
|
|
|
|
docs/src/generated/spec/index.md: generated/spec/meta.schema.json
|
|
|
|
mkdir -p generated/spec
|
|
|
|
node spec/generate.js
|
2023-03-23 18:32:34 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf generated
|