docs.sheetjs.com/Makefile

40 lines
1.0 KiB
Makefile
Raw Permalink Normal View History

2022-05-16 03:26:04 +00:00
.PHONY: build
build:
2022-10-30 05:45:37 +00:00
cp formats.png docz/static/formats.png
2022-05-17 03:19:39 +00:00
cd docz; npx -y pnpm build; cd ..
2022-05-16 03:26:04 +00:00
rm -rf docs
mv docz/build/ docs
2023-03-06 19:35:43 +00:00
cp _headers docs
2022-05-16 03:26:04 +00:00
2022-08-26 19:21:53 +00:00
.PHONY: init
init:
2022-09-03 10:02:45 +00:00
cd docz; npm i || npm i --legacy-peer-deps; cd ..
2022-08-26 19:21:53 +00:00
.PHONY: dev
dev:
2024-05-21 22:03:41 +00:00
cd docz; npm run start -- --host=0.0.0.0 --no-open; cd ..
2022-08-26 19:21:53 +00:00
2022-05-31 02:53:56 +00:00
.PHONY: serve
2022-05-23 03:37:51 +00:00
serve:
2022-08-26 19:21:53 +00:00
npx -y http-server docs
2022-05-23 03:37:51 +00:00
2022-08-21 19:43:30 +00:00
.PHONY: spell
spell:
2022-08-25 08:22:28 +00:00
npx spellchecker-cli -q -d .spelling -f 'docz/**/*.md*' --no-suggestions
2022-08-21 19:43:30 +00:00
2022-05-11 21:03:03 +00:00
.PHONY: graph
graph: formats.png legend.png ## Rebuild format conversion graph
misc/formats.svg: misc/formats.dot
circo -Tsvg -o$@ $<
misc/legend.svg: misc/legend.dot
dot -Tsvg -o$@ $<
formats.png legend.png: %.png: misc/%.svg
node misc/coarsify.js misc/$*.svg misc/$*.svg.svg
npx svgexport misc/$*.svg.svg $@ 0.5x
2023-07-06 07:21:41 +00:00
MDLINT=README.md $(wildcard docz/*.md*) $(wildcard docz/docs/*.md*) $(wildcard docz/docs/*/*.md*) $(wildcard docz/docs/*/*/*.md*)
2022-05-11 21:03:03 +00:00
.PHONY: mdlint
mdlint: $(MDLINT) ## Check markdown documents
npx alex $^
npx --package markdown-spellcheck -- mdspell -a -n -x -r --en-us $^