Merged
Conversation
Member
|
do we need to commit these or can we deploy them as part of the docs build? |
Member
Author
|
@devongovett I think the other options are:
I guess the |
5 tasks
Member
Author
|
Discussed with the team, and it seems like we're leaning towards this solution:
|
Member
Author
|
Just noticed that so we might be able to just deploy these to the CDN and have them be installed that way. |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
devongovett
previously approved these changes
Jan 31, 2026
|
Build successful! 🎉 |
devongovett
reviewed
Feb 2, 2026
devongovett
reviewed
Feb 2, 2026
snowystinger
reviewed
Feb 2, 2026
|
Build successful! 🎉 |
devongovett
approved these changes
Feb 2, 2026
snowystinger
approved these changes
Feb 2, 2026
| "build:s2-docs": "yarn workspace @react-spectrum/s2-docs build", | ||
| "check:s2-docs-build": "node packages/dev/s2-docs/scripts/validateS2DocsBuild.mjs", | ||
| "build:mcp": "yarn workspace @react-spectrum/mcp build && yarn workspace @react-aria/mcp build", | ||
| "generate:skills": "node packages/dev/s2-docs/scripts/generateAgentSkills.mjs", |
Member
There was a problem hiding this comment.
make a script target in s2
Suggested change
| "generate:skills": "node packages/dev/s2-docs/scripts/generateAgentSkills.mjs", | |
| "generate:skills": "yarn workspace @react-spectrum/s2 generate:skills", |
| "start:s2": "DOCS_ENV=dev LIBRARY=s2 parcel 'pages/s2/**/*.mdx' -p 4321 --config .parcelrc-s2-docs --dist-dir dist/s2 --cache-dir ../../../.parcel-cache/s2", | ||
| "start:react-aria": "DOCS_ENV=dev LIBRARY=react-aria parcel 'pages/react-aria/**/*.mdx' -p 1234 --config .parcelrc-s2-docs --dist-dir dist/react-aria --cache-dir ../../../.parcel-cache/react-aria", | ||
| "build": "yarn build:s2 --public-url $PUBLIC_URL && yarn build:react-aria --public-url $PUBLIC_URL", | ||
| "build": "yarn build:s2 --public-url $PUBLIC_URL && yarn build:react-aria --public-url $PUBLIC_URL && node scripts/generateAgentSkills.mjs", |
Member
There was a problem hiding this comment.
if you make a target this can change to
Suggested change
| "build": "yarn build:s2 --public-url $PUBLIC_URL && yarn build:react-aria --public-url $PUBLIC_URL && node scripts/generateAgentSkills.mjs", | |
| "build": "yarn build:s2 --public-url $PUBLIC_URL && yarn build:react-aria --public-url $PUBLIC_URL && yarn generate:skills", |
| mkdir -p dist/s2-docs/react-aria/$(PUBLIC_URL) | ||
| mkdir -p dist/s2-docs/s2/$(PUBLIC_URL) | ||
| mv packages/dev/s2-docs/dist/react-aria/* dist/s2-docs/react-aria/$(PUBLIC_URL) | ||
| if [ -d packages/dev/s2-docs/dist/react-aria/.well-known ]; then mv packages/dev/s2-docs/dist/react-aria/.well-known dist/s2-docs/react-aria/$(PUBLIC_URL); fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #9508.
Adds a script to generate Agent Skills based on our documentation.
This
yarn generate:skillsscript uses our existing markdown docs build output, and copies/formats them to match the Agent Skills spec. The script outputs these into our docs build in the.well-known/directory.Users will be able to install them by via npx skills:
More resources:
✅ Pull Request Checklist:
📝 Test Instructions:
React Spectrum (S2):
React Aria:
The skills should get placed in the current project.
and verify the old mcp pages aren't visible in search or in the sidebar.
🧢 Your Project: