We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4dd045 commit 214c4deCopy full SHA for 214c4de
1 file changed
scripts/build-static.sh
@@ -7,10 +7,6 @@ BASE_DIR="$( cd "$( dirname "$0" )/.." >/dev/null 2>&1 && pwd )"
7
STATIC_DIR="${BASE_DIR}/static"
8
DOCS_DIR="${BASE_DIR}/content/en/docs"
9
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
-
14
# Serve versioned schemas
15
cd ${DOCS_DIR}
16
ORIGINAL_REVISION=$(git rev-parse HEAD)
@@ -29,4 +25,8 @@ for tag in $(git tag); do
29
25
cp ${schema} ${TARGET_SCHEMA_FOLDER}/${TARGET_SCHEMA}
30
26
done
31
27
32
-git checkout ${ORIGINAL_REVISION}
28
+git checkout ${ORIGINAL_REVISION}
+
+# Serve static images
+cp ${DOCS_DIR}/images/* ${STATIC_DIR}/images/
+sed -i -e 's/\(images\/[a-zA-Z\-]*\.svg\)/\/\1/g' ${DOCS_DIR}/*.md
0 commit comments