From 702db9c1b9c448f3ea85aed0291a853df17397a9 Mon Sep 17 00:00:00 2001 From: Steven Johnson Date: Fri, 1 Nov 2024 14:31:16 +0700 Subject: [PATCH] feat(docs): Add targets to help making local preview docs easier. (#345) * docs(docs): Add local-docs dev utility target * fix(docs): dev artifact directory * docs(docs): Copy the local dev script as a directory --- earthly/docs/Earthfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/earthly/docs/Earthfile b/earthly/docs/Earthfile index 7f4018cf6..8cedfe96e 100644 --- a/earthly/docs/Earthfile +++ b/earthly/docs/Earthfile @@ -68,6 +68,21 @@ common: SAVE ARTIFACT /std +# The file we use for local-docs: +local-docs: + FROM scratch + + COPY --dir dev . + SAVE ARTIFACT /dev + +# SYNC_STD_CFG : Syncs the standard config files locally. +SYNC_LOCAL_DOCS: + FUNCTION + FROM scratch + COPY --dir +local-docs/dev /dev + + SAVE ARTIFACT /dev/local.py AS LOCAL local.py + # Common src setup SRC: FUNCTION