Skip to content

Commit

Permalink
feat(docs): Add targets to help making local preview docs easier. (#345)
Browse files Browse the repository at this point in the history
* docs(docs): Add local-docs dev utility target

* fix(docs): dev artifact directory

* docs(docs): Copy the local dev script as a directory
  • Loading branch information
stevenj authored Nov 1, 2024
1 parent 97361e9 commit 702db9c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions earthly/docs/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 702db9c

Please sign in to comment.