Skip to content

Commit 77208eb

Browse files
committed
WIP WIP
1 parent d995a27 commit 77208eb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/make-site-digest.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@
33
MANIFEST=${1-public/site-manifest.json}
44
DIGEST=${2-public/site-digest.txt}
55

6+
# TODO rewrite this in Javascript?
7+
# update the MD5 into the digest file, instead of a .txt file.
8+
# then any output can be handled with a template iteration.
9+
# (This may be more similar to what OpenDevise end up doing in any case.)
10+
611
for URL in $(
712
jq -r \
813
'.components | .. | select(.url?) | select(.alias? | not) | .url' \
914
$MANIFEST \
10-
| grep -v '^null$')
15+
| grep -v '^null$' \
16+
| sort -u)
1117
do
1218
FILE=public$URL
1319
# fillet out just the <main> section of the HTML file

0 commit comments

Comments
 (0)