Conversation
|
Build successful! 🎉 |
There was a problem hiding this comment.
I ran the command yarn workspace @react-spectrum/s2-docs generate:md on main and then on this branch (which appears to be up to date with main)
The output is different for the md files. I ran diff -r /Users/robsnow/Desktop/dist-main /Users/robsnow/Desktop/dist-new to verify
It looks like the new md files contain a lot more information? (although that any seems wrong in the function signature)
Also, sometimes the order of the values changes? I had to sort for tsdiffer otherwise it was random to an extent.
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
@snowystinger Thanks for checking that! Fixed the |
|
Build successful! 🎉 |


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
Also includes some improvements to the markdown output in some areas where we had gaps:
✅ Pull Request Checklist:
📝 Test Instructions:
Smoke test markdown docs outputs.
🧢 Your Project: