Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/en/docs/primer/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 4 additions & 2 deletions scripts/build-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down