diff --git a/content/en/docs/primer/_index.md b/content/en/docs/primer/_index.md index a2f62ea..822c0f0 100644 --- a/content/en/docs/primer/_index.md +++ b/content/en/docs/primer/_index.md @@ -196,8 +196,8 @@ version every time the spec version is changed. Examples: -- Schema: `"$id": "https://cdevents.dev/0.1.1/schema/artifact-packaged-event",` -- Event: `"version": "0.1.1"` +- Schema: `"$id": "https://cdevents.dev/0.5.0/schema/artifact-packaged-event",` +- Event: `"specversion": "0.5.0"` ### Development of a new version diff --git a/scripts/build-static.sh b/scripts/build-static.sh index f550f91..bed9a86 100755 --- a/scripts/build-static.sh +++ b/scripts/build-static.sh @@ -5,10 +5,12 @@ set -exo pipefail BASE_DIR="$( cd "$( dirname "$0" )/.." >/dev/null 2>&1 && pwd )" STATIC_DIR="${BASE_DIR}/static" -DOCS_DIR="$(mktemp -d)" +DOCS_DIR="${SPEC_DIR:-$(mktemp -d)}" # Clone the spec repo to pull the schemas -git clone https://github.com/cdevents/spec "${DOCS_DIR}" +if [ ! -d ${DOCS_DIR}/.git ]; then + git clone https://github.com/cdevents/spec "${DOCS_DIR}" +fi # Serve versioned schemas cd "${DOCS_DIR}"