From 29a279d1646c8067f13e40aafb03a7d2b31a6f7d Mon Sep 17 00:00:00 2001 From: Andrea Frittoli Date: Thu, 6 Nov 2025 10:47:47 +0000 Subject: [PATCH] Update version to specversion in the primer Merge after https://github.com/cdevents/spec/pull/273 has been merged and v0.5 has been released. Signed-off-by: Andrea Frittoli --- content/en/docs/primer/_index.md | 4 ++-- scripts/build-static.sh | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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}"