Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branberry patch 1 #863

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
curl https://raw.githubusercontent.com/mongodb/docs-worker-pool/netlify-poc/scripts/build-site.sh -o build-site.sh
sh build-site.sh


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

git clone -b @dop/[email protected] --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}
Loading