Docs: Convert all main.* and preview.* references to linked .* notation#34459
Draft
Docs: Convert all main.* and preview.* references to linked .* notation#34459
main.* and preview.* references to linked .* notation#34459Conversation
- Convert all text references in docs MDX files from specific extensions (preview.ts, preview.tsx, preview.js, preview.jsx, main.ts, main.js, etc.) to .* notation with links to the reference pages - preview.* links point to configure/index.mdx#configure-story-rendering - main.* links point to api/main-config/main-config.mdx - Code block titles updated from pipe-separated (|ts) to single specific extensions based on fence language - main.js|ts configuration titles updated to main.* configuration - Headings use .* notation without links per issue requirements Agent-Logs-Url: https://github.com/storybookjs/storybook/sessions/73433770-3447-46fc-a0e9-9c8ef433f3a6 Co-authored-by: Sidnioulz <5108577+Sidnioulz@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update documentation to link references for main and preview files
Docs: Convert all Apr 3, 2026
main.* and preview.* references to linked .* notation
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.
Using specific extensions like
preview.tsormain.jsimplies those files must use that language. All doc references should use.*to signal extension-agnosticism, and link to the reference pages where allowed extensions are documented explicitly.Changes
preview.js,preview.ts,preview.js|ts,.storybook/preview.tsx, etc. →[`.storybook/preview.*`](configure/index.mdx#configure-story-rendering)with correct relative links per file locationmain.*: All variants →[`.storybook/main.*`](api/main-config/main-config.mdx)title=".storybook/main.js|ts"→ single extension matching the fence language (e.g.```ts title=".storybook/main.ts")main.js|ts configurationsidebar/page titles in API docs →main.* configuration.*notation, no link (per issue guidance)Intentionally preserved
preview.jsreferences incontribute/framework.mdxandapi/new-frameworks.mdx(not the user-facing config file)builders/vite.mdx: "Rename.storybook/main.jsto.storybook/main.ts" — the JS→TS distinction is the entire point of that sentence