mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 15:39:13 +00:00
Closes DOCS-1608 ## Problem We do not have a template for the most common and important type of content we have: the procedure. ## Solution This PR introduces our first template: the how-to. This also includes the scaffolding needed for all other templates, including a template-selection table and wiring into our docs-writing skills. ## Preview links The style guide isn't served by the docs site, so the table links the changed files on `master` and on this branch instead. | Site | Live | Preview | Search for | | ---- | ------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------- | | Docs | [03-page-structure.md](https://github.com/supabase/supabase/blob/master/apps/docs/style-guide/03-page-structure.md) | [03-page-structure.md](https://github.com/supabase/supabase/blob/docs/how-to-template/apps/docs/style-guide/03-page-structure.md) | `Choose a template` | | Docs | Not on `master` | [templates/how-to-guide.md](https://github.com/supabase/supabase/blob/docs/how-to-template/apps/docs/style-guide/templates/how-to-guide.md) | `How-to guide template` | ## Review instructions 1. Open `templates/how-to-guide.md` from the preview link and confirm it's 80 lines or fewer and makes sense without other files. 2. Follow the new links in `03-page-structure.md`, the style-guide README, and the three skills, and confirm each resolves. 3. Run `pnpm test:prettier` and confirm it passes. ## Checklist Check all before review: - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
Supabase Docs
This directory contains the Next.js app for supabase.com/docs.
Guides live in content/ as MDX. Reference pages are generated from the specs in spec/: OpenAPI, SDKSpec, ConfigSpec, and CLISpec. Some sections come from other repositories.
Where to go
- To write a page, follow the style guide.
- To find where a page lives, add one, or update generated reference docs, use the contributing guide. Library maintainers start at Reference structure.
- To use an agent, use the AI agent skills for docs authoring. Those skills include framing a page and placing it in the information architecture.
- To run the site locally, use the developers' guide.
- To add or change a redirect, read
lib/redirects/README.mdfirst.