Skip to content

Docs: Convert all references to main.* and preview.* to links #34458

@Sidnioulz

Description

@Sidnioulz

To avoid people thinking a preview or main file must be TypeScript, we should always use .* as an extension and always link to the full docs, where we can be explicit about allowed extensions.

In inline snippets (e.g. ```ts title=".storybook/preview.tsx") and other places where we cannot or should not (e.g. headings) include a link, we should use ts or `tsx`, as appropriate.

Originally posted by @kylegach in #34396 (comment)

Metadata

Metadata

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions