Skip to content

Commit 4097f3c

Browse files
authored
Merge branch 'main' into fix-various-bugs
2 parents 229343d + ecb05e2 commit 4097f3c

File tree

393 files changed

+21786
-3811
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

393 files changed

+21786
-3811
lines changed

.circleci/config.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,9 @@ jobs:
757757
name: deploy
758758
command: |
759759
if [ $AZURE_STORAGE_SAS_TOKEN ]; then
760-
azcopy copy "/tmp/dist/*" "https://reactspectrum.blob.core.windows.net/reactspectrum${AZURE_STORAGE_SAS_TOKEN}" --recursive
760+
azcopy copy "/tmp/dist/*" "https://reactspectrum.blob.core.windows.net/reactspectrum${AZURE_STORAGE_SAS_TOKEN}" --recursive --exclude-pattern "*.md;*.txt"
761+
azcopy copy "/tmp/dist/*" "https://reactspectrum.blob.core.windows.net/reactspectrum${AZURE_STORAGE_SAS_TOKEN}" --recursive --include-pattern "*.md" --content-type "text/markdown; charset=utf-8"
762+
azcopy copy "/tmp/dist/*" "https://reactspectrum.blob.core.windows.net/reactspectrum${AZURE_STORAGE_SAS_TOKEN}" --recursive --include-pattern "*.txt" --content-type "text/plain; charset=utf-8"
761763
fi
762764
763765
# Separate deploy workflow for the test docs built w/ verdaccio packages so it doesn't hold up the other deploy workflows
@@ -778,7 +780,9 @@ jobs:
778780
command: |
779781
if [ $AZURE_STORAGE_SAS_TOKEN ]; then
780782
for dir in /tmp/verdaccio_dist/*/verdaccio; do
781-
azcopy copy "$dir/*" "https://reactspectrum.blob.core.windows.net/reactspectrum/$CIRCLE_SHA1/verdaccio${AZURE_STORAGE_SAS_TOKEN}" --recursive
783+
azcopy copy "$dir/*" "https://reactspectrum.blob.core.windows.net/reactspectrum/$CIRCLE_SHA1/verdaccio${AZURE_STORAGE_SAS_TOKEN}" --recursive --exclude-pattern "*.md;*.txt"
784+
azcopy copy "$dir/*" "https://reactspectrum.blob.core.windows.net/reactspectrum/$CIRCLE_SHA1/verdaccio${AZURE_STORAGE_SAS_TOKEN}" --recursive --include-pattern "*.md" --content-type "text/markdown; charset=utf-8"
785+
azcopy copy "$dir/*" "https://reactspectrum.blob.core.windows.net/reactspectrum/$CIRCLE_SHA1/verdaccio${AZURE_STORAGE_SAS_TOKEN}" --recursive --include-pattern "*.txt" --content-type "text/plain; charset=utf-8"
782786
done
783787
fi
784788
@@ -796,7 +800,10 @@ jobs:
796800
mv ./azcopy_linux_amd64_*/azcopy /usr/local/bin/
797801
- run:
798802
name: deploy
799-
command: azcopy copy "/tmp/dist/production/docs/*" "https://reactspectrum.blob.core.windows.net/\$web${AZURE_STORAGE_SAS_TOKEN}" --recursive
803+
command: |
804+
azcopy copy "/tmp/dist/production/docs/*" "https://reactspectrum.blob.core.windows.net/\$web${AZURE_STORAGE_SAS_TOKEN}" --recursive --exclude-pattern "*.md;*.txt"
805+
azcopy copy "/tmp/dist/production/docs/*" "https://reactspectrum.blob.core.windows.net/\$web${AZURE_STORAGE_SAS_TOKEN}" --recursive --include-pattern "*.md" --content-type "text/markdown; charset=utf-8"
806+
azcopy copy "/tmp/dist/production/docs/*" "https://reactspectrum.blob.core.windows.net/\$web${AZURE_STORAGE_SAS_TOKEN}" --recursive --include-pattern "*.txt" --content-type "text/plain; charset=utf-8"
800807
801808
comment:
802809
executor: rsp

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ s2-api-diff:
143143
node scripts/api-diff.js --skip-same --skip-style-props
144144

145145
s2-docs:
146-
node scripts/extractStarter.mjs
146+
yarn workspace @react-spectrum/s2-docs generate:md
147+
yarn workspace @react-spectrum/s2-docs generate:og
147148
REGISTRY_URL=https://reactspectrum.blob.core.windows.net/reactspectrum/$$(git rev-parse HEAD)/s2-docs/registry node scripts/buildRegistry.mjs
148149
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/
149150
mkdir -p dist/$$(git rev-parse HEAD)

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
"build:docs": "DOCS_ENV=staging parcel build 'packages/@react-{spectrum,aria,stately}/*/docs/*.mdx' 'packages/react-aria-components/docs/**/*.mdx' 'packages/@internationalized/*/docs/*.mdx' 'packages/dev/docs/pages/**/*.mdx'",
2828
"start:s2-docs": "yarn workspace @react-spectrum/s2-docs start",
2929
"build:s2-docs": "yarn workspace @react-spectrum/s2-docs build",
30+
"build:mcp": "yarn workspace @react-spectrum/mcp build",
31+
"start:mcp": "yarn workspace @react-spectrum/s2-docs generate:md && yarn workspace @react-spectrum/mcp build && node packages/dev/mcp/dist/index.js",
32+
"test:mcp": "yarn build:s2-docs && yarn build:mcp && node packages/dev/mcp/scripts/smoke-list-pages.mjs",
3033
"test": "cross-env STRICT_MODE=1 VIRT_ON=1 yarn jest",
3134
"test:lint": "node packages/**/*.test-lint.js",
3235
"test-loose": "cross-env VIRT_ON=1 yarn jest",
@@ -64,7 +67,8 @@
6467
"packages/react-aria",
6568
"packages/react-aria-components",
6669
"packages/tailwindcss-react-aria-components",
67-
"packages/*/*"
70+
"packages/*/*",
71+
"packages/dev/mcp"
6872
],
6973
"devDependencies": {
7074
"@actions/core": "^1.1.0",
@@ -245,7 +249,8 @@
245249
"micromark-extension-mdxjs": "patch:micromark-extension-mdxjs@npm%3A1.0.0#~/.yarn/patches/micromark-extension-mdxjs-npm-1.0.0-d2b6b69e4a.patch",
246250
"remark-mdx": "patch:remark-mdx@npm%3A2.0.0-rc.2#~/.yarn/patches/remark-mdx-npm-2.0.0-rc.2-7a71234e1f.patch",
247251
"remark-parse": "patch:remark-parse@npm%3A10.0.1#~/.yarn/patches/remark-parse-npm-10.0.1-e654d7df78.patch",
248-
"lightningcss": "1.30.1"
252+
"lightningcss": "1.30.1",
253+
"react-server-dom-parcel": "canary"
249254
},
250255
"@parcel/transformer-css": {
251256
"cssModules": {
@@ -280,7 +285,8 @@
280285
{
281286
"name": "s2-styles",
282287
"assets": [
283-
"packages/@react-spectrum/s2/**"
288+
"packages/@react-spectrum/s2/**",
289+
"packages/dev/s2-docs/src/**"
284290
],
285291
"types": [
286292
"css"

packages/@react-aria/autocomplete/docs/anatomy.svg

Lines changed: 13 additions & 13 deletions
Loading

packages/@react-aria/breadcrumbs/docs/anatomy.svg

Lines changed: 7 additions & 7 deletions
Loading

0 commit comments

Comments
 (0)