-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (28 loc) · 759 Bytes
/
Makefile
File metadata and controls
39 lines (28 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.PHONY: install build build-openapi mint lint lint-openapi lint-markdown cli-install cli-build cli
install:
npm install
npm i -g mint
build:
npm run build:openapi
build-openapi:
npm run build:openapi
STAINLESS_OPENAPI_URL := https://app.stainless.com/api/spec/documented/grid/openapi.documented.yml
LOCAL_OPENAPI_PATH := openapi.yaml
mint:
@cd mintlify && \
sed -i.bak 's|$(STAINLESS_OPENAPI_URL)|$(LOCAL_OPENAPI_PATH)|' docs.json && \
trap 'mv docs.json.bak docs.json' EXIT INT TERM; \
mint dev
lint:
npm run lint
cd mintlify && mint openapi-check openapi.yaml
lint-openapi:
npm run lint:openapi
lint-markdown:
npm run lint:markdown
cli-install:
cd cli && npm install
cli-build:
cd cli && npm run build
cli:
cd cli && npm run dev --