Repository navigation
docs: add styling overview — the choose-a-path guide - #7134
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report📚 Storybook Preview🧪 Sandbox PreviewNo new or modified components detected. Bundle Size SummaryNo component packages changed. Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
7b85836 to
b72ee4f
Compare
There was a problem hiding this comment.
Thanks for adding this — one short guide that answers "How do I set up CSS?" is exactly what was missing. The three paths read clearly, the plain and Tailwind import blocks match the existing getting-started and styling-libraries guidance, and search already surfaces the new topic first.
One fix is needed before this can merge: the pointer to the bundler config examples in the StyleX-from-source section names no doc, so it renders as raw {@link ...} markup for readers and the docs checks fail on it. Naming the styling doc itself, with the section mentioned in prose (for example, "See the StyleX Build Setup section of …"), resolves it.
It would also help to refresh the pull-request description's section table, which still lists sections the shipped file no longer contains.
Once that link resolves, this looks good to land.
[Automated review]
| }, | ||
| { | ||
| type: 'prose', | ||
| text: 'If a swizzled component renders with no styles and no error, a missing compiler is almost always why. See {@link generic:styling stylex-setup} for bundler config examples.', |
There was a problem hiding this comment.
This link names no doc: {@link generic:styling stylex-setup} is reported by astryx doctor as naming no doc, renders as literal markup in astryx docs styling-overview --full, and fails the docs-graph link-resolution test (plus the Doctor docs-tree checks). Doc links name a doc by identity only, so please name the doc itself and put the section in prose — for example: "See the StyleX Build Setup section of {@link generic:styling} for bundler config examples."
One doc answering "How do I set up CSS?" with exact imports for plain, Tailwind, and StyleX-from-source paths. Fixes link syntax and updates theme references for the split.
b72ee4f to
954138d
Compare
There was a problem hiding this comment.
Thanks for adding this — one short guide that answers "How do I set up CSS?" is exactly what was missing. The three paths read clearly, the Tailwind imports match the existing styling-libraries guidance, and search already surfaces the new topic first.
The earlier blocking link is fixed: the StyleX-from-source pointer now names the styling doc (with the section in prose), it resolves when the guide is read, and the docs checks and Doctor pass for this topic.
One small housekeeping note: the pull-request description's section table still lists a few sections the shipped file no longer contains, so refreshing it would keep readers from looking for them.
This looks good to land.
[Automated review]
The theme split (#7141) taught plain `theme add` (copying) instead of the current `theme add --import` workflow. This fixes use-a-theme, author-a-theme, and the theme overview to match the import-based workflow that getting-started and the integration guides teach: - theme add --import + generated astryx-themes module - theme use / theme remove for managing imported themes - theme eject only for independent source forks - Restores the "Migrating Earlier Theme Copies" section - Fixes apostrophe syntax error in author-a-theme Addresses CodeBunny review on #7141.
What this does
1. Styling overview (new file)
One doc answering "How do I set up CSS?" with exact imports for plain, Tailwind, and StyleX-from-source paths.
2. Theme workflow fix-forward
Restores the import-based workflow in the split theme guides (#7141). Addresses every item from CodeBunny review #5451802604:
use-a-theme: teachestheme add --import+ generatedastryx-themesmodule,theme use/theme remove,theme ejectfor forkingauthor-a-theme: teachesextendson imported themes, eject for forkingthemeoverview: uses--importcommandsFiles
styling-overview.doc.mjsuse-a-theme.doc.mjsauthor-a-theme.doc.mjstheme.doc.mjsdocs.test.mjsChecks
Not merged — awaiting Joey's word.