@@ -109,6 +109,8 @@ website:
109109website-production :
110110 node scripts/buildWebsite.js $$ PUBLIC_URL
111111 cp packages/dev/docs/pages/robots.txt dist/production/docs/robots.txt
112+ # Uncomment this when we are ready to release.
113+ # $(MAKE) s2-docs-production
112114 $(MAKE ) starter-zip
113115 $(MAKE ) tailwind-starter
114116 $(MAKE ) s2-storybook-docs
@@ -143,12 +145,18 @@ s2-api-diff:
143145 node scripts/api-diff.js --skip-same --skip-style-props
144146
145147s2-docs :
148+ BASE_URL=https://reactspectrum.blob.core.windows.net PUBLIC_URL=/reactspectrum/$$(git rev-parse HEAD ) /s2-docs DIST_DIR=dist/$$(git rev-parse HEAD ) /s2-docs $(MAKE ) build-s2-docs
149+
150+ s2-docs-production :
151+ BASE_URL=https://react-spectrum.adobe.com PUBLIC_URL=/beta DIST_DIR=dist/production/docs/beta $(MAKE ) build-s2-docs
152+
153+ build-s2-docs :
146154 yarn workspace @react-spectrum/s2-docs generate:md
147155 yarn workspace @react-spectrum/s2-docs generate:og
148- REGISTRY_URL=https://reactspectrum.blob.core.windows.net/reactspectrum/ $$( git rev-parse HEAD ) /s2-docs /registry node scripts/buildRegistry.mjs
149- REGISTRY_URL=https://reactspectrum.blob.core.windows.net/reactspectrum/ $$( git rev-parse HEAD ) /s2-docs/ registry yarn build:s2-docs --public-url /reactspectrum/ $$( git rev-parse HEAD ) /s2-docs/
150- mkdir -p dist/ $$( git rev-parse HEAD )
151- mv packages/dev/s2-docs/dist dist/ $$( git rev-parse HEAD ) /s2-docs
152- mkdir -p dist/ $$( git rev-parse HEAD ) /s2-docs /registry
153- mv starters/docs/registry dist/ $$( git rev-parse HEAD ) /s2-docs /registry/vanilla
154- mv starters/tailwind/registry dist/ $$( git rev-parse HEAD ) /s2-docs /registry/tailwind
156+ REGISTRY_URL=$( BASE_URL )$( PUBLIC_URL ) /registry node scripts/buildRegistry.mjs
157+ REGISTRY_URL=$( BASE_URL )$( PUBLIC_URL ) / registry yarn build:s2-docs --public-url $( PUBLIC_URL )
158+ mkdir -p $( DIST_DIR )
159+ mv packages/dev/s2-docs/dist/ * $( DIST_DIR )
160+ mkdir -p $( DIST_DIR ) /registry
161+ mv starters/docs/registry $( DIST_DIR ) /registry/vanilla
162+ mv starters/tailwind/registry $( DIST_DIR ) /registry/tailwind
0 commit comments