From 3ea251b246af61425b710bfb4f640111670abb5f Mon Sep 17 00:00:00 2001 From: Brandon Ly Date: Mon, 7 Oct 2024 14:39:13 -0500 Subject: [PATCH 1/3] Hotfix for OpenAPI --- build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.sh b/build.sh index a69632987..a9148bcec 100644 --- a/build.sh +++ b/build.sh @@ -1,2 +1,5 @@ curl https://raw.githubusercontent.com/mongodb/docs-worker-pool/netlify-poc/scripts/build-site.sh -o build-site.sh sh build-site.sh + + +git clone --depth 1 --filter=tree:0 https://github.com/mongodb/docs-worker-pool.git --sparse From 75492a4e0645c1baca8823d0d08c8ff75077066c Mon Sep 17 00:00:00 2001 From: Brandon Ly Date: Mon, 7 Oct 2024 14:44:30 -0500 Subject: [PATCH 2/3] Update build.sh --- build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index a9148bcec..9cfd8aa0d 100644 --- a/build.sh +++ b/build.sh @@ -2,4 +2,8 @@ curl https://raw.githubusercontent.com/mongodb/docs-worker-pool/netlify-poc/scri sh build-site.sh -git clone --depth 1 --filter=tree:0 https://github.com/mongodb/docs-worker-pool.git --sparse +# if [ ! -d "docs-worker-pool" ]; then + git clone --depth 1 --filter=tree:0 https://github.com/mongodb/docs-worker-pool.git --sparse + cd docs-worker-pool && git sparse-checkout set --no-cone modules/oas-page-builder + cd modules/oas-page-builder && npm ci && npm run build +#fi From e6381911bdb9426481667a3f97c0d5ac8d0c140b Mon Sep 17 00:00:00 2001 From: Brandon Ly Date: Mon, 7 Oct 2024 14:59:24 -0500 Subject: [PATCH 3/3] Update build.sh --- build.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 9cfd8aa0d..edf905455 100644 --- a/build.sh +++ b/build.sh @@ -2,8 +2,13 @@ curl https://raw.githubusercontent.com/mongodb/docs-worker-pool/netlify-poc/scri sh build-site.sh -# if [ ! -d "docs-worker-pool" ]; then +if [ ! -d "docs-worker-pool" ]; then git clone --depth 1 --filter=tree:0 https://github.com/mongodb/docs-worker-pool.git --sparse cd docs-worker-pool && git sparse-checkout set --no-cone modules/oas-page-builder cd modules/oas-page-builder && npm ci && npm run build -#fi +fi + +git clone -b @dop/redoc-cli@1.2.3 --depth 1 https://github.com/mongodb-forks/redoc.git redoc +cd redoc && npm ci --prefix cli/ --omit=dev + +node docs-worker-pool/modules/oas-page-builder --bundle bundle.zip --output snooty/public --redoc ${REDOC_PATH} --repo ${REPO_DIR} --site-url ${SITE_URL}