diff --git a/content/en/docs b/content/en/docs index e8bec3f..486f65b 160000 --- a/content/en/docs +++ b/content/en/docs @@ -1 +1 @@ -Subproject commit e8bec3ffc87b8d99d8919c189326f45321becd4e +Subproject commit 486f65b6950c2d4b35cba8101baa489251cce439 diff --git a/scripts/build-static.sh b/scripts/build-static.sh index 62b0bde..b55198a 100755 --- a/scripts/build-static.sh +++ b/scripts/build-static.sh @@ -7,10 +7,6 @@ BASE_DIR="$( cd "$( dirname "$0" )/.." >/dev/null 2>&1 && pwd )" STATIC_DIR="${BASE_DIR}/static" DOCS_DIR="${BASE_DIR}/content/en/docs" -# Serve static images -cp ${DOCS_DIR}/images/* ${STATIC_DIR}/images/ -sed -i -e 's/\(images\/[a-zA-Z\-]*\.svg\)/\/\1/g' ${DOCS_DIR}/*.md - # Serve versioned schemas cd ${DOCS_DIR} ORIGINAL_REVISION=$(git rev-parse HEAD) @@ -29,4 +25,8 @@ for tag in $(git tag); do cp ${schema} ${TARGET_SCHEMA_FOLDER}/${TARGET_SCHEMA} done done -git checkout ${ORIGINAL_REVISION} \ No newline at end of file +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