Skip to content

Commit 7c1a22e

Browse files
committed
Switch the website to v0.4.1
Fix the logic to handle link schemas and add custom schemas. Signed-off-by: Andrea Frittoli <[email protected]>
1 parent 588e3b1 commit 7c1a22e

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ archived_version = false
112112
# The version number for the version of the docs represented in this doc set.
113113
# Used in the "version-banner" partial to display a version number for the
114114
# current doc set.
115-
version = "v0.4.0"
115+
version = "v0.4.1"
116116

117117
# A link to latest version of the docs. Used in the "version-banner" partial to
118118
# point people to the main doc site.

scripts/build-static.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,18 @@ for tag in $(git tag); do
2929

3030
# Starting with v0.4 we serve links schemas too
3131
if [[ -d schemas/links ]]; then
32-
for schema in schemas/*json; do
33-
cp -r "schemas/links/${schema}" "schemas/links/${schema%.*}"
32+
pushd schemas
33+
mkdir "${TARGET_SCHEMA_FOLDER}/links" || true
34+
for schema in links/*json; do
35+
cp -r "${schema}" "${TARGET_SCHEMA_FOLDER}/${schema}"
36+
cp -r "${schema}" "${TARGET_SCHEMA_FOLDER}/${schema%.*}"
3437
done
38+
popd
39+
fi
40+
41+
# Starting with v0.4 we serve the custom events schema
42+
if [[ -f custom/schema.json ]]; then
43+
cp custom/schema.json "${TARGET_SCHEMA_FOLDER}/custom"
44+
cp custom/schema.json "${TARGET_SCHEMA_FOLDER}/custom.json"
3545
fi
3646
done

0 commit comments

Comments
 (0)