-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
71 lines (64 loc) · 2.42 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
62
63
64
65
66
67
68
69
70
71
all: build doc
allsts: build docsts
alllts: build doclts
build:
yarn && \
grunt ts && \
grunt && \
grunt delivery
doc:
grunt nodesheets
mkdir -p doc/sdk/node/cheatsheets
cp bin/jsdoc/sheets/cheatsheet/node/nodeSheet.png doc/sdk/node/cheatsheets && \
mkdir -p doc/sdk/node/api && \
cp build/*.md doc/sdk/node/api && \
cp build/*.xml doc/sdk/node/api && \
cp build/*.cdx doc/sdk/node/sts/api && \
mkdir -p doc/sdk/node/guides && \
cp guide/*.md doc/sdk/node/guides && \
grunt generatemermaid
mkdir -p doc/sdk/node/imgs && \
cp build/resources/. doc/sdk/node/imgs && \
cp index.yml doc/sdk/node && \
cp sitemap.xml doc/sdk/node
docsts:
grunt nodesheets
mkdir -p doc/sdk/node/sts/cheatsheets && \
cp bin/jsdoc/sheets/cheatsheet/node/nodeSheet.png doc/sdk/node/sts/cheatsheets && \
mkdir -p doc/sdk/node/sts/api && \
cp build/*.md doc/sdk/node/sts/api && \
cp build/*.xml doc/sdk/node/sts/api && \
cp build/*.cdx doc/sdk/node/sts/api && \
mkdir -p doc/sdk/node/sts/guides && \
cp guide/*.md doc/sdk/node/sts/guides && \
ls ./jsdoc/diagramsMermaid/*
ls -ls ./node_modules/.bin/*
# grunt generatemermaid -v
# mkdir -vp ./build/resources
# touch ./build/resources/filetest.txt
# ls ./build/resources/*
# mkdir -p doc/sdk/node/sts/imgs && \
# npm install mermaid-cli --save
# ./node_modules/.bin/mmdc -i jsdoc/diagramsMermaid/RPCoverXMPPFlow1.mmd -o ./build/resources/RPCoverXMPPFlow1.mmd.png
# cp -r ./build/resources/. doc/sdk/node/sts/imgs && \
cp index.yml doc/sdk/node/sts && \
cp lts_version.json doc/sdk/node/sts && \
cp sitemap.xml doc/sdk/node/sts
# md files index.yml and sitemap.xml must be updated in the jenkins pipeline to update path from doc/sdk/node to doc/sdk/node/sts in theirs contents.
doclts:
grunt nodesheets
mkdir -p doc/sdk/node/lts/cheatsheets && \
cp bin/jsdoc/sheets/cheatsheet/node/nodeSheet.png doc/sdk/node/lts/cheatsheets && \
mkdir -p doc/sdk/node/lts/api && \
cp build/*.md doc/sdk/node/lts/api && \
cp build/*.xml doc/sdk/node/lts/api && \
cp build/*.cdx doc/sdk/node/sts/api && \
mkdir -p doc/sdk/node/lts/guides && \
cp guide/*.md doc/sdk/node/lts/guides && \
grunt generatemermaid
mkdir -p doc/sdk/node/lts/imgs && \
cp -r build/resources/. doc/sdk/node/lts/imgs && \
cp index.yml doc/sdk/node/lts && \
cp lts_version.json doc/sdk/node/lts && \
cp sitemap.xml doc/sdk/node/lts
# cp build/*.xml doc/sdk/node/guides