forked from EmpowerPlastic/empowerchain
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEarthfile
37 lines (33 loc) · 945 Bytes
/
Earthfile
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
VERSION 0.6
FROM node:lts-hydrogen
WORKDIR /empowerchain/docs
build:
# New section directory should be added here manually
COPY core-modules .
COPY developers .
COPY governance .
COPY introduction .
COPY misc .
COPY testnet .
COPY validators .
COPY references .
# ===================================================
COPY public .
COPY static .
COPY .vitepress .
COPY index.md .
COPY package.json .
RUN npm install
RUN npm run build
SAVE ARTIFACT .vitepress/dist AS LOCAL public
docgen:
COPY ../chain/+docgen/* ./
SAVE ARTIFACT .vitepress/* AS LOCAL .vitepress/
SAVE ARTIFACT cli-docs AS LOCAL references/cli-docs
SAVE ARTIFACT module-docs AS LOCAL references/module-docs
swagger-docs:
COPY ../chain/+swagger-gen/markdown.md ./api-docs/swagger.md
SAVE ARTIFACT api-docs AS LOCAL references/api-docs
docs-gen-all:
BUILD +swagger-docs
BUILD +docgen