Skip to content

Commit 702db9c

Browse files
authored
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
1 parent 97361e9 commit 702db9c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

earthly/docs/Earthfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,21 @@ common:
6868

6969
SAVE ARTIFACT /std
7070

71+
# The file we use for local-docs:
72+
local-docs:
73+
FROM scratch
74+
75+
COPY --dir dev .
76+
SAVE ARTIFACT /dev
77+
78+
# SYNC_STD_CFG : Syncs the standard config files locally.
79+
SYNC_LOCAL_DOCS:
80+
FUNCTION
81+
FROM scratch
82+
COPY --dir +local-docs/dev /dev
83+
84+
SAVE ARTIFACT /dev/local.py AS LOCAL local.py
85+
7186
# Common src setup
7287
SRC:
7388
FUNCTION

0 commit comments

Comments
 (0)