diff --git a/netlify.toml b/netlify.toml index 514d93a72..e322518ab 100644 --- a/netlify.toml +++ b/netlify.toml @@ -2,7 +2,7 @@ # Basic configuration for a Netlify deployment [build] publish = "" # Directory to publish - command = "./pr-preview.sh" + command = "npx respec -s index.html -o index.html --localhost; npx respec -s accname/index.html -o accname/index.html --localhost; npx respec -s core-aam/index.html -o core-aam/index.html --localhost; npx respec -s dpub-aam/index.html -o dpub-aam/index.html --localhost; npx respec -s dpub-aria/index.html -o dpub-aria/index.html --localhost; npx respec -s graphics-aam/index.html -o graphics-aam/index.html --localhost; npx respec -s graphics-aria/index.html -o graphics-aria/index.html --localhost; npx respec -s svg-aam/index.html -o svg-aam/index.html --localhost; npx respec -s mathml-aam/index.html -o mathml-aam/index.html --localhost" [[redirects]] from = "/*" @@ -14,6 +14,8 @@ [context.deploy-preview] NODE_ENV = "Deploy" + command = "./pr-preview.sh" [context.branch-deploy.environment] - NODE_ENV = "development" \ No newline at end of file + NODE_ENV = "development" + command = "./pr-preview.sh" \ No newline at end of file diff --git a/pr-preview.sh b/pr-preview.sh index 5d7b61278..6dffe44ab 100755 --- a/pr-preview.sh +++ b/pr-preview.sh @@ -8,8 +8,8 @@ find . -wholename "./index.html" -exec sed -i 's/ariaSpecURLs: {/ariaSpecURLs: { find . -wholename "./index.html" -exec sed -i 's/accNameURLs: {/accNameURLs: {\n "unofficial": ".\/accname\/",/g' {} + find . -wholename "./index.html" -exec sed -i 's/coreMappingURLs: {/coreMappingURLs: {\n "unofficial": ".\/core-aam\/",/g' {} + -# update specURLs mapping for child specs -echo "updating child spec mappings" +# update child specs URLs mapping +echo "updating child spec URL mappings" # aria find . -mindepth 1 -name "index.html" -exec sed -i 's/ariaSpecURLs: {/ariaSpecURLs: {\n "unofficial": "..\/",/g' {} + # accname