diff --git a/config.toml b/config.toml index d09c883..67adff4 100644 --- a/config.toml +++ b/config.toml @@ -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. diff --git a/scripts/build-static.sh b/scripts/build-static.sh index 522b9cc..f550f91 100755 --- a/scripts/build-static.sh +++ b/scripts/build-static.sh @@ -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