@@ -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
@@ -144,12 +146,18 @@ s2-api-diff:
144146 node scripts/api-diff.js --skip-same --skip-style-props
145147
146148s2-docs :
149+ 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
150+
151+ s2-docs-production :
152+ BASE_URL=https://react-spectrum.adobe.com PUBLIC_URL=/beta DIST_DIR=dist/production/docs/beta $(MAKE ) build-s2-docs
153+
154+ build-s2-docs :
147155 yarn workspace @react-spectrum/s2-docs generate:md
148156 yarn workspace @react-spectrum/s2-docs generate:og
149- REGISTRY_URL=https://reactspectrum.blob.core.windows.net/reactspectrum/ $$( git rev-parse HEAD ) /s2-docs /registry node scripts/buildRegistry.mjs
150- 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/
151- mkdir -p dist/ $$( git rev-parse HEAD )
152- mv packages/dev/s2-docs/dist dist/ $$( git rev-parse HEAD ) /s2-docs
153- mkdir -p dist/ $$( git rev-parse HEAD ) /s2-docs /registry
154- mv starters/docs/registry dist/ $$( git rev-parse HEAD ) /s2-docs /registry/vanilla
155- mv starters/tailwind/registry dist/ $$( git rev-parse HEAD ) /s2-docs /registry/tailwind
157+ REGISTRY_URL=$( BASE_URL )$( PUBLIC_URL ) /registry node scripts/buildRegistry.mjs
158+ REGISTRY_URL=$( BASE_URL )$( PUBLIC_URL ) / registry yarn build:s2-docs --public-url $( PUBLIC_URL )
159+ mkdir -p $( DIST_DIR )
160+ mv packages/dev/s2-docs/dist/ * $( DIST_DIR )
161+ mkdir -p $( DIST_DIR ) /registry
162+ mv starters/docs/registry $( DIST_DIR ) /registry/vanilla
163+ mv starters/tailwind/registry $( DIST_DIR ) /registry/tailwind
0 commit comments