From c1addf53ee9a65b0c98f17bf93cf22949630044d Mon Sep 17 00:00:00 2001 From: Mauro Morales Date: Sat, 28 Jan 2023 21:44:24 +0100 Subject: [PATCH] sparkles: Integrate documentation to Web UI (#741) * Integrate documentation to Web UI Relates to #738 Signed-off-by: Mauro Morales * submodule update Signed-off-by: Mauro Morales * Use hugo docker image Signed-off-by: Mauro Morales --------- Signed-off-by: Mauro Morales --- Earthfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Earthfile b/Earthfile index 1204766..6c64727 100644 --- a/Earthfile +++ b/Earthfile @@ -113,6 +113,7 @@ version: build-kairos-agent: FROM +go-deps COPY +webui-deps/node_modules ./internal/webui/public/node_modules + COPY +docs/public/local ./internal/webui/public/local DO +BUILD_GOLANG --BIN=kairos-agent --SRC=agent --CGO_ENABLED=$CGO_ENABLED build: @@ -635,3 +636,11 @@ webui-deps: WORKDIR ./internal/webui/public RUN npm install SAVE ARTIFACT node_modules /node_modules AS LOCAL internal/webui/public/node_modules + +docs: + FROM klakegg/hugo:ext-alpine + COPY . . + WORKDIR ./docs + RUN npm run prepare + RUN HUGO_ENV="production" hugo --gc -b "/local/" -d "public/local" + SAVE ARTIFACT public /public AS LOCAL docs/public