Replies: 1 comment
-
|
I stumbled upon this feature request in search for a full text search for my MDX files in Storybook. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
Storybook, when it grows, may become hard to browse. It's built-in search component is helpful navigating as long as one knows what they look for, and as long as they keyword happens to be te name of component or the title of docs page
Describe the solution you'd like
I'd like to draw maintainers' attention to tool called Pagefind
As I wrote earlier today #7711 (comment) it brings a great experience to one of existing static docs generators, https://starlight.astro.build/ and I suppose it may be useful in Storybook as well
Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
yes, I can
Additional context
Output of Astro is easy to index because it's a static HTML with a bunch of JS inside and therefore it's possible to use Pagefind CLI
For Storybook it will probably be required to use indexing API instead during
storybook buildas what comes out ofbuildis (at least in case of Vite builder I use and I can observe) a bunch of JS files with raw JSX runtime functions calls so running CLI against that may not give good resultsBeta Was this translation helpful? Give feedback.
All reactions