Skip to content

Conversation

@reidbarber
Copy link
Member

The markdown docs generation script (yarn workspace @react-spectrum/s2-docs generate:md) was pretty slow due to repetitive sync glob and file reads. Now, we build an index of symbols and read from that instead.

On my machine:

Before: 113s
After: 5s

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

Smoke test that markdown docs outputs are unchanged.

🧢 Your Project:

@reidbarber reidbarber changed the title chore: speed up markdown docs script WIP: chore: speed up markdown docs script Dec 23, 2025
@reidbarber reidbarber changed the title WIP: chore: speed up markdown docs script chore: speed up markdown docs script Dec 23, 2025
@rspbot
Copy link

rspbot commented Dec 23, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants