Document Component
Steps to add a new component to the SST docs.
Register in docs generator
- Add the component
.tspath toentryPointsinwww/generate.ts
- Add the component
Add matching public getters
- Ensure every property returned by
getSSTLink()has a corresponding public getter on the class - The generator crashes otherwise because
renderLinks()looks for a getter with the same name
- Ensure every property returned by
Analyze docs for relevant places to link the component
- Search existing guides (e.g.
cloudflare.mdx) and component overviews for lists of related components - Add the new component link where appropriate
- Search existing guides (e.g.
Add to Astro sidebar
- Add the generated doc slug to the appropriate section in
www/astro.config.mjs - Follow the existing visual ordering: components are sorted from shortest to longest name (least to most characters)
- Add the generated doc slug to the appropriate section in
Generate docs
- Run
bun run docs:generate
- Run
Source: anomalyco/sst — distributed by TomeVault.