Files
releases/docs/Makefile
Charlie Egan f8c50574d8 Add generated output.jsons for docs examples (#8535)
This allows us to show the results of example evaluation before the user
clicks evaluate, but also for chatbots to see the output when viewing
without interaction.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>
2026-04-21 13:01:02 +00:00

76 lines
1.2 KiB
Makefile

.PHONY: install
install:
npm install
.PHONY: ci
ci:
npm ci
.PHONY: dev
dev:
# --no-open means that the browser will not be opened on start.
# This is done to avoid opening many tabs repeatedly when editing
# docusaurus.config.js.
npx docusaurus start --no-open
.PHONY: build
build:
npx docusaurus build
.PHONY: build-latest
build-latest:
./bin/build-latest.sh
.PHONY: clean
clean:
rm -rf build .docusaurus
.PHONY: generate-cli-docs
generate-cli-docs:
$(CURDIR)/../build/gen-cli-docs.sh > $(CURDIR)/src/data/cli.json
.PHONY: smoke-test
smoke-test:
./bin/smoke-test.sh
.PHONY: fmt
fmt:
npx dprint fmt
.PHONY: fmt-check
fmt-check:
npx dprint check
.PHONY: lint
lint:
npx eslint --fix .
.PHONY: lint-check
lint-check:
npx eslint .
.PHONY: markdownlint
markdownlint:
npx markdownlint-cli2 --fix
.PHONY: markdownlint-check
markdownlint-check:
npx markdownlint-cli2
.PHONY: spell-check
spell-check:
vale --config=.vale.ini .
.PHONY: gen
gen:
./bin/eval-examples.sh
.PHONY: gen-check
gen-check:
./bin/eval-examples.sh
@if [ -n "$$(git status --porcelain)" ]; then \
echo "Error: working directory is not clean after running gen"; \
git diff; \
exit 1; \
fi