Files
supabase/apps/docs/style-guide/README.md
Miranda Limonczenko 81d5e239e2 docs(style-guide): add how-to guide template (#53648)
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)
2026-11-19 10:59:37 -08:00

66 lines
3.4 KiB
Markdown

# Supabase documentation style guide
Welcome to the documentation style guide. This is a living document that
serves as the evolving source of truth for:
- Our Supabase voice and our audience
- The structure of our technical documents
- How we consistently talk about our product
This guide is for everyone who is writing to help Supabase users. It
can be used by anyone who writes for Supabase, no matter your role or whether you are an employee or open
source contributor.
The style guide is also for both humans and LLMs: our [SKILLS](../CONTRIBUTING.md#write-the-docs-skills)
use the style guide, but the style guide is also human-readable and friendly. Much of this guide is dedicated to removing AI smells such as verbosity and overused
asides.
We encourage you to contribute to the style guide so that we write the best
documentation for Supabase. If something consistently bothers you, it may bother others as
well. That could be an inconsistently used term or an unnecessarily verbose writing
pattern. Open a style guide PR and start the discussion.
## Navigation
The files in the style guide are numbered in the order of content size. It starts with
the smallest piece, at the word level, then progresses to the sentence, the element,
and the whole page. `WORD_LIST` is unnumbered and a master document for our word
consistency decisions.
| File | Covers |
| ------------------------------------------------ | -------------------------------------------------- |
| [`WORD_LIST.md`](./WORD_LIST.md) | Terminology, spelling, capitalization |
| [`01-voice-and-tone.md`](./01-voice-and-tone.md) | Person, tense, sentence length, brevity |
| [`02-elements.md`](./02-elements.md) | Admonitions, code blocks, procedures, tabs, images |
| [`03-page-structure.md`](./03-page-structure.md) | Document type, section grouping, chunking |
| [`templates/`](./templates/) | Page structures for the page types that have one |
## Before you open a pull request
Always run [`WORD_LIST.md`](./WORD_LIST.md) against the finished page. We removed any
linter and instead entrust you to use the word list.
You can run `/review-the-docs` for a local self-review, and `/test-the-docs` if the page
contains runnable snippets.
### If you drafted with an agent
Run a critic pass. Open a
subagent with a clean context, holding only the relevant guide files and the draft
text, and give it this instruction:
> Referencing the docs style guide, cite every rule violation in the draft. Quote
> the offending phrase and cite the rule it breaks as `file#anchor`, for example
> `03-page-structure.md#chunking`. Derive the anchor from the heading itself, and
> ignore headings inside fenced code blocks, which are examples rather than rules.
> Then resolve.
Each citation has to resolve to a real heading in the guide. One that doesn't is an invented rule, so check the citations before you act on them.
## References
- For spelling, see [Merriam-Webster.com](https://merriam-webster.com)
- For accessible writing, see [Google's accessibility guidance](https://developers.google.com/style/accessibility)
- For gaps, see [Google developer documentation style guide](https://developers.google.com/style)
- For an additional developer guide reference, see [Microsoft Writing Style Guide](https://learn.microsoft.com/en-us/style-guide/welcome/)