Skip to content

Commit 214c4de

Browse files
github-actions[bot]afrittoli
authored andcommitted
Fix the static build script
Signed-off-by: Andrea Frittoli <[email protected]>
1 parent c4dd045 commit 214c4de

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/build-static.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ BASE_DIR="$( cd "$( dirname "$0" )/.." >/dev/null 2>&1 && pwd )"
77
STATIC_DIR="${BASE_DIR}/static"
88
DOCS_DIR="${BASE_DIR}/content/en/docs"
99

10-
# Serve static images
11-
cp ${DOCS_DIR}/images/* ${STATIC_DIR}/images/
12-
sed -i -e 's/\(images\/[a-zA-Z\-]*\.svg\)/\/\1/g' ${DOCS_DIR}/*.md
13-
1410
# Serve versioned schemas
1511
cd ${DOCS_DIR}
1612
ORIGINAL_REVISION=$(git rev-parse HEAD)
@@ -29,4 +25,8 @@ for tag in $(git tag); do
2925
cp ${schema} ${TARGET_SCHEMA_FOLDER}/${TARGET_SCHEMA}
3026
done
3127
done
32-
git checkout ${ORIGINAL_REVISION}
28+
git checkout ${ORIGINAL_REVISION}
29+
30+
# Serve static images
31+
cp ${DOCS_DIR}/images/* ${STATIC_DIR}/images/
32+
sed -i -e 's/\(images\/[a-zA-Z\-]*\.svg\)/\/\1/g' ${DOCS_DIR}/*.md

0 commit comments

Comments
 (0)