-
Notifications
You must be signed in to change notification settings - Fork 33
/
Makefile
61 lines (47 loc) · 1.43 KB
/
Makefile
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
TREMOR_VSN=main
REF_DIR=docs/reference
LANG_REF_DIR=docs/language/reference
NEXT_LANG_REF_DIR=docs/next/language/reference
REF_DOCS=codecs extractors operators postprocessors preprocessors scripts stdlib connectors
all: clean tremor-runtime-refresh tremor-runtime-docs openapi
docusaurus:
npm install
npm run build
clean_build: reset all docusaurus
netlify: clean_build
serve:
npm run serve
tremor-runtime:
-git clone https://github.com/tremor-rs/tremor-runtime
.PHONY: tremor-runtime-refresh
tremor-runtime-refresh: tremor-runtime
cd tremor-runtime &&\
git checkout $(TREMOR_VSN) &&\
git pull
alex:
npm install -g alex
alex docs
tremor-runtime-docs:
-cd tremor-runtime && make docs
-rm -rf $(LANG_REF_DIR)
-for doc in $(REF_DOCS); do rm -rf $(REF_DIR)/$$doc; done;
-cp -r tremor-runtime/docs/language $(LANG_REF_DIR)
-for doc in $(REF_DOCS); do cp -r tremor-runtime/docs/$$doc $(REF_DIR); done
-cp -r _templates/* docs
openapi:
-mkdir -p static/api/edge
cp tremor-runtime/static/openapi.yaml static/api/edge
clean:
-rm -rf static/api/edge/openapi.yaml
-for doc in $(REF_DOCS); do rm -rf $(REF_DIR)/$$doc; done;
-rm -rf $(LANG_REF_DIR)
touch_version:
cat versions.json | jq '.[1:]' > out
mv out versions.json
rm -rf versioned_sidebars/version-0.12.0-rc0-sidebars.json
rm -rf versioned_docs/version-0.12.0-rc0
npm run docusaurus docs:version 0.12.0-rc0
reset:
-npm run clear
-rm -rf tremor-runtime
-rm -rf node_modules