@@ -109,6 +109,8 @@ website:
109
109
website-production :
110
110
node scripts/buildWebsite.js $$ PUBLIC_URL
111
111
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
112
114
$(MAKE ) starter-zip
113
115
$(MAKE ) tailwind-starter
114
116
$(MAKE ) s2-storybook-docs
@@ -143,12 +145,18 @@ s2-api-diff:
143
145
node scripts/api-diff.js --skip-same --skip-style-props
144
146
145
147
s2-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 :
146
154
yarn workspace @react-spectrum/s2-docs generate:md
147
155
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