Skip to content

Commit

Permalink
Switch the website to v0.4.1
Browse files Browse the repository at this point in the history
Fix the logic to handle link schemas and add custom schemas.

Signed-off-by: Andrea Frittoli <[email protected]>
  • Loading branch information
afrittoli committed May 17, 2024
1 parent 588e3b1 commit 7c1a22e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ archived_version = false
# The version number for the version of the docs represented in this doc set.
# Used in the "version-banner" partial to display a version number for the
# current doc set.
version = "v0.4.0"
version = "v0.4.1"

# A link to latest version of the docs. Used in the "version-banner" partial to
# point people to the main doc site.
Expand Down
14 changes: 12 additions & 2 deletions scripts/build-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,18 @@ for tag in $(git tag); do

# Starting with v0.4 we serve links schemas too
if [[ -d schemas/links ]]; then
for schema in schemas/*json; do
cp -r "schemas/links/${schema}" "schemas/links/${schema%.*}"
pushd schemas
mkdir "${TARGET_SCHEMA_FOLDER}/links" || true
for schema in links/*json; do
cp -r "${schema}" "${TARGET_SCHEMA_FOLDER}/${schema}"
cp -r "${schema}" "${TARGET_SCHEMA_FOLDER}/${schema%.*}"
done
popd
fi

# Starting with v0.4 we serve the custom events schema
if [[ -f custom/schema.json ]]; then
cp custom/schema.json "${TARGET_SCHEMA_FOLDER}/custom"
cp custom/schema.json "${TARGET_SCHEMA_FOLDER}/custom.json"
fi
done

0 comments on commit 7c1a22e

Please sign in to comment.