From 936ae14ea02d5f5bd138c5bb629ab62b24fb90cd Mon Sep 17 00:00:00 2001 From: Erik Ziegler Date: Tue, 15 Jun 2021 14:43:59 -0400 Subject: [PATCH] fix: deployment previews for UI docs and Core docs - workaround for docz issue https://github.com/pedronauck/docz/issues/1635 - tailwind purge - fix docusaurus basename and docz missing props --- .netlify/build-deploy-preview.sh | 13 +- .netlify/www/_redirects | 2 + .netlify/www/index.html | 5 +- package.json | 6 +- platform/docs/docusaurus.config.js | 2 +- platform/ui/package.json | 3 +- .../components/SplitButton/SplitButton.mdx | 5 + platform/ui/tailwind.config.js | 1 + yarn.lock | 3991 ++++++----------- 9 files changed, 1507 insertions(+), 2521 deletions(-) diff --git a/.netlify/build-deploy-preview.sh b/.netlify/build-deploy-preview.sh index 24feb4c74..112590214 100755 --- a/.netlify/build-deploy-preview.sh +++ b/.netlify/build-deploy-preview.sh @@ -15,11 +15,12 @@ node -v yarn run build:ci mkdir -p ./.netlify/www/pwa mv platform/viewer/dist/* .netlify/www/pwa -v +echo 'Web application built and copied' # Build && Move script output # yarn run build:package -# Build && Move Docz Output +# Build && Move Docz Output (for the UI Component Library) # Using local yarn install to prevent Gatsby from needing to access # node_modules above the platform/ui folder cd platform/ui @@ -28,6 +29,16 @@ yarn run build cd ../.. mkdir -p ./.netlify/www/ui mv platform/ui/.docz/dist/* .netlify/www/ui -v +echo 'UI Component docs (docz) built and copied' + +# Build && Move Docusaurus Output (for the docs themselves) +cd platform/docs +yarn install +yarn run build +cd ../.. +mkdir -p ./.netlify/www/docs +mv platform/docs/build/* .netlify/www/docs -v +echo 'Docs built (docusaurus) and copied' # Cache all of the node_module dependencies in # extensions, modules, and platform packages diff --git a/.netlify/www/_redirects b/.netlify/www/_redirects index 2c599733c..af175b32d 100644 --- a/.netlify/www/_redirects +++ b/.netlify/www/_redirects @@ -6,3 +6,5 @@ /pwa/* /pwa/index.html 200 # UI Demo /ui/* /ui/index.html 200 +# UI Demo +/docs/* /docs/index.html 200 diff --git a/.netlify/www/index.html b/.netlify/www/index.html index f5de55c18..3d889be82 100644 --- a/.netlify/www/index.html +++ b/.netlify/www/index.html @@ -9,7 +9,10 @@