An open source design system that's fully customizable and agent ready
TypeScript
docs: tidy six guide titles and fix two broken links (#7934)
Joeyccdb1b8b5ab4
diff --git a/.changeset/docs-tidy-titles.md b/.changeset/docs-tidy-titles.mdnew file mode 100644index 0000000000..a830aaf13e--- /dev/null+++ b/.changeset/docs-tidy-titles.md@@ -0,0 +1,7 @@+---+'@astryxdesign/cli': patch+---++[docs] Six guide titles read more plainly and use the same sentence case as the rest: Theme System is now Theming, Styling Components is Styling components, Browser Support is Browser support, Migration Guide is Migration, Styling Library Interop is Other styling libraries, and Looking up components is Component lookups. Only the titles changed: every route still opens the same doc (`astryx docs theme`, `astryx docs styling-libraries`, `astryx docs cli/component-lookups`), and searching by an old title still finds it.++@josephfarinadiff --git a/apps/docsite/src/__tests__/data-extraction.test.ts b/apps/docsite/src/__tests__/data-extraction.test.tsindex d75ab37611..d996628d28 100644--- a/apps/docsite/src/__tests__/data-extraction.test.ts+++ b/apps/docsite/src/__tests__/data-extraction.test.ts@@ -1101,7 +1101,7 @@ describe('docsRegistry', () => {const theme = docTopics.find(d => d.topic === 'theme');expect(theme).toBeDefined();- expect(theme?.title).toBe('Theme System');+ expect(theme?.title).toBe('Theming');});it('known topics are present', () => {diff --git a/apps/docsite/src/components/component-detail/ComponentDetailClient.tsx b/apps/docsite/src/components/component-detail/ComponentDetailClient.tsxindex ee260d7663..12e748f64b 100644--- a/apps/docsite/src/components/component-detail/ComponentDetailClient.tsx+++ b/apps/docsite/src/components/component-detail/ComponentDetailClient.tsx@@ -181,8 +181,7 @@ function OverviewContent({<MarkdownText type="body">Already using the shadcn registry workflow? Install the realAstryx package and a local public re-export. Component- implementation source stays in Astryx. [How compatibility- works](/docs/shadcn-compatibility).+ implementation source stays in Astryx.</MarkdownText>{shadcnRegistryIsPreview && (<Text type="supporting" color="secondary">diff --git a/packages/charts/README.md b/packages/charts/README.mdindex 26cb01eb49..5b6a3ed7ce 100644--- a/packages/charts/README.md+++ b/packages/charts/README.md@@ -25,7 +25,7 @@ It ships to npm **only under the `@canary` dist-tag** — there is never a stabl## StatusUnder active development. The config-model chart and its marks/chrome are in place;-API and visuals are still being refined. See [`docs/`](./docs/) for the plan, design research, readiness audit, and+API and visuals are still being refined. See [`docs/`](https://github.com/facebook/astryx/tree/main/packages/charts/docs) for the plan, design research, readiness audit, andverification checklist.## Usagediff --git a/packages/cli/api/docs/reference-blocks.test.mjs b/packages/cli/api/docs/reference-blocks.test.mjsindex 05765669c8..9209222089 100644--- a/packages/cli/api/docs/reference-blocks.test.mjs+++ b/packages/cli/api/docs/reference-blocks.test.mjs@@ -259,7 +259,7 @@ describe('a reference block in a topic section', () => {/^docs\(\): Read the reference docs: .* Read it with `astryx docs cli\/api\/functions\/docs`\.$/,);expect(more[1].text).toMatch(- /^Theme System: .* Read it with `astryx docs theme`\.$/,+ /^Theming: .* Read it with `astryx docs theme`\.$/,);},SLOW,diff --git a/packages/cli/assets/docs/browser-support.doc.mjs b/packages/cli/assets/docs/browser-support.doc.mjsindex 3b9b17f283..1346164e9c 100644--- a/packages/cli/assets/docs/browser-support.doc.mjs+++ b/packages/cli/assets/docs/browser-support.doc.mjs@@ -4,7 +4,7 @@export const docs = {name: 'browser-support',- title: 'Browser Support',+ title: 'Browser support',category: 'guide',description:'What browsers Astryx targets, which modern platform features it depends on, and how to support older browsers for your own audience.',diff --git a/packages/cli/assets/docs/theme.doc.mjs b/packages/cli/assets/docs/theme.doc.mjsindex 8c91498384..d97ae11e97 100644--- a/packages/cli/assets/docs/theme.doc.mjs+++ b/packages/cli/assets/docs/theme.doc.mjs@@ -4,9 +4,9 @@export const docs = {name: 'theme',- title: 'Theme System',+ title: 'Theming',category: 'guide',- keywords: ['theme', 'dark mode', 'defineTheme', 'provider'],+ keywords: ['theme', 'theming', 'theme system', 'dark mode', 'defineTheme', 'provider'],description:'How to use and create themes: see Use a theme for applying themes, and Author a theme for creating and customizing them.',diff --git a/packages/cli/assets/docs/tree/component-lookups.doc.mjs b/packages/cli/assets/docs/tree/component-lookups.doc.mjsindex 35024e4063..3914c7d314 100644--- a/packages/cli/assets/docs/tree/component-lookups.doc.mjs+++ b/packages/cli/assets/docs/tree/component-lookups.doc.mjs@@ -10,8 +10,9 @@ export const docs = {type: 'generic',name: 'component-lookups',placement: {parent: 'namespace:cli', slot: 'guides', order: 5},- title: 'Looking up components',+ title: 'Component lookups',category: 'guide',+ keywords: ['look up', 'looking up components', 'lookup', 'batch'],description:'Look up one or several exact component identities, choose a focused projection, and handle complete batch receipts.',sections: [diff --git a/packages/cli/assets/docs/tree/migration.doc.mjs b/packages/cli/assets/docs/tree/migration.doc.mjsindex cd1baf6347..42799a935c 100644--- a/packages/cli/assets/docs/tree/migration.doc.mjs+++ b/packages/cli/assets/docs/tree/migration.doc.mjs@@ -10,11 +10,12 @@export const docs = {type: 'namespace',name: 'migration',- title: 'Migration Guide',+ title: 'Migration',summary:'Migrate an existing Tailwind, shadcn, or Radix app to the design system incrementally — setup, component replacement, and verification.',keywords: ['migration',+ 'migration guide','migrate','Tailwind','shadcn',diff --git a/packages/cli/assets/docs/tree/styling-libraries.doc.mjs b/packages/cli/assets/docs/tree/styling-libraries.doc.mjsindex 4c5a733bd3..9e08e0152b 100644--- a/packages/cli/assets/docs/tree/styling-libraries.doc.mjs+++ b/packages/cli/assets/docs/tree/styling-libraries.doc.mjs@@ -10,7 +10,7 @@export const docs = {type: 'namespace',name: 'styling-libraries',- title: 'Styling Library Interop',+ title: 'Other styling libraries',summary:'Integrate Tailwind, StyleX, Panda, Chakra, MUI, CSS-in-JS, CSS Modules, and non-CSS renderers with system tokens.',keywords: [@@ -23,6 +23,7 @@ export const docs = {'styled-components','CSS Modules','interop',+ 'styling library interop',],slots: {guides: {title: 'Guides', accepts: {kinds: ['generic']}},diff --git a/packages/cli/assets/docs/tree/styling.doc.mjs b/packages/cli/assets/docs/tree/styling.doc.mjsindex 984e69e662..96124ac67b 100644--- a/packages/cli/assets/docs/tree/styling.doc.mjs+++ b/packages/cli/assets/docs/tree/styling.doc.mjs@@ -10,7 +10,7 @@export const docs = {type: 'namespace',name: 'styling',- title: 'Styling Components',+ title: 'Styling components',summary:'Customize component appearance: xstyle, Tailwind, className, rest props, compound components, data attribute selectors, tokens, and StyleX setup.',keywords: [diff --git a/packages/cli/clients/cli/commands/docs.test.mjs b/packages/cli/clients/cli/commands/docs.test.mjsindex bd93614292..bb9eec5d20 100644--- a/packages/cli/clients/cli/commands/docs.test.mjs+++ b/packages/cli/clients/cli/commands/docs.test.mjs@@ -97,7 +97,7 @@ describe('migration docs', () => {await program.parseAsync(['node', 'astryx', 'docs', 'migration']);const output = console.log.mock.calls.map(c => c[0]).join('\n');- expect(output).toContain('Migration Guide');+ expect(output).toContain('Migration');expect(output).toContain('migration');});});