Skip to content

Commit 32a4522

Browse files
authored
Merge pull request #4244 from Shopify/fix/checkout-v2-post-processing-2025-10
fix: post-process generated_docs_data_v2.json in checkout build 2025-10
2 parents ed7108e + b6ad00f commit 32a4522

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/ui-extensions/docs/surfaces/checkout/build-docs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ fi
9090
# Make sure https://shopify.dev URLs are relative.
9191
# See https://github.com/Shopify/generate-docs/issues/181
9292
run_sed 's/https:\/\/shopify.dev//gi' ./$DOCS_PATH/generated/generated_docs_data.json
93+
run_sed 's/https:\/\/shopify.dev//gi' ./$DOCS_PATH/generated/generated_docs_data_v2.json
9394
sed_exit=$?
9495
if [ $sed_exit -ne 0 ]; then
9596
fail_and_exit $sed_exit
@@ -111,7 +112,7 @@ if [ -d $SHOPIFY_DEV_PATH ]; then
111112
cp ./$DOCS_PATH/generated/* $SHOPIFY_DEV_PATH/areas/platforms/shopify-dev/db/data/docs/templated_apis/checkout_extensions/$API_VERSION
112113

113114
# Replace 'latest' with the exact API version in relative doc links
114-
for file in generated_docs_data.json generated_static_pages.json; do
115+
for file in generated_docs_data.json generated_docs_data_v2.json generated_static_pages.json; do
115116
run_sed \
116117
"s/\/docs\/api\/checkout-ui-extensions\/latest/\/docs\/api\/checkout-ui-extensions\/$API_VERSION/gi" \
117118
"$SHOPIFY_DEV_PATH/areas/platforms/shopify-dev/db/data/docs/templated_apis/checkout_extensions/$API_VERSION/$file"

0 commit comments

Comments
 (0)