-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(react-storybook-addon): add Copy as Markdown button to FluentDocsPage #35255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat(react-storybook-addon): add Copy as Markdown button to FluentDocsPage #35255
Conversation
📊 Bundle size report✅ No changes found |
bd9d055
to
22538bf
Compare
22538bf
to
8e83c6e
Compare
"build-storybook": "storybook build -o ./dist/storybook --docs", | ||
"build-storybook:docsite": "cross-env DEPLOY_PATH=/charts/ storybook build -o ./dist/storybook --docs", | ||
"postbuild-storybook": "yarn rewrite-title && yarn generate-llms-docs", | ||
"postbuild-storybook:docsite": "yarn rewrite-title && yarn generate-llms-docs", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the postbuild hook didn't run for the new deployment
"postbuild-storybook": "yarn rewrite-title && yarn generate-llms-docs", | ||
"rewrite-title": "node -r ../../scripts/ts-node/src/register ../../scripts/storybook/src/scripts/rewrite-title.ts --title 'Fluent UI React v9' --distPath ./dist/storybook", | ||
"postbuild-storybook": "yarn rewrite-title --distPath ./dist/storybook && yarn generate-llms-docs", | ||
"postbuild-storybook:react": "yarn rewrite-title --distPath ./dist/react && cross-env DEPLOY_PATH=/react/ yarn generate-llms-docs", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the same as above, but here we're passing the env var cross-env DEPLOY_PATH=/react/
to use diferrent config for storybook-llms config based on deployment
Pull request demo site: URL |
"private": true, | ||
"description": "Fluent UI React Charts Preview documentation", | ||
"scripts": { | ||
"build-storybook": "storybook build -o ./dist/storybook --docs", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕵🏾♀️ visual changes to review in the Visual Change Report
vr-tests-react-components/Drawer 1 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
vr-tests-react-components/Drawer.overlay drawer full - High Contrast.chromium.png | 4942 | Changed |
vr-tests-react-components/Positioning 2 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
vr-tests-react-components/Positioning.Positioning end.updated 2 times.chromium.png | 726 | Changed |
vr-tests-react-components/Positioning.Positioning end.chromium.png | 915 | Changed |
vr-tests-react-components/TagPicker 1 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
vr-tests-react-components/TagPicker.disabled - Dark Mode.disabled input hover.chromium.png | 659 | Changed |
There were 1 duplicate changes discarded. Check the build logs for more information.
Previous Behavior
llms.txt
files were not generated for/charts
and/react
deployments (regression from [Feature]: deploy to repo public websites to github pages (v9,charting,web-components) #35061)New Behavior
The markdown format enables AI agents to easily consume component documentation when generating, fixing, or improving code with proper context about component APIs and usage patterns
Demo:
Screen.Recording.2025-10-01.at.12.50.18.mov
llms.txt
generation for/charts
and/react
deploymentsRelated Issue(s)