Commit Graph
12 Commits
Author SHA1 Message Date
Nik RichersandNik Richers f1b8af12b8 docs: refresh contributing page with rules of engagement (#52536)
## I have read the CONTRIBUTING.md file.

YES

## What kind of change does this PR introduce?

Simplifies the Contributing page so it does not duplicate the GitHub
guide, and updates `CONTRIBUTING.md` and `apps/docs/README.md` to match.

Closes DOCS-1563.

## What is the current behavior?

The live page is a 530-line component reference that duplicates and
drifts from CONTRIBUTING.md and the official docs style guide. Current
info about how to author content with our skills is missing.

## What is the new behavior?

`content.mdx` is a short intro that agrees with CONTRIBUTING.md, plus a
card that opens the guide on GitHub.

`CONTRIBUTING.md` now says to link an issue, that GitHub requests a
review from the Docs team (`@supabase/docs`), and to give the changes a
human review. It also requires a frontmatter `description`, documents
the `skip-anchor-check` label, and describes keyword search
(`docs_search_v2`) instead of embedding search.

`apps/docs/README.md` is now a short map: style guide, contributing
guide, agent skills, local setup, and redirects. The old Reference Docs
and DocSpec overview is gone.

## Additional context

- Worktree:
~/GitHub/supabase/supabase-worktrees/nikrichers/docs-1563-refresh-docscontributing-with-rules-of-engagement-and-remove
- Verification:

| Check | Result |
| --- | --- |
| `prettier --check` on the four changed files | pass |
| CI `format` | pass |
| Production `/docs/contributing` | pass, HTTP 200 |
| Preview `/docs/contributing` | pass, HTTP 200, shows How to contribute
and Get started |
| Full-page screenshots at 1280px | pass |

### Proof: the contributing page is a short guide, not a component
catalog

**Verified:** production `curl` (200) · preview `curl` (200) · `prettier
--check` (pass)

| [Before (production)](https://supabase.com/docs/contributing) | [After
(PR
preview)](https://docs-git-nikrichers-docs-1563-refresh-docscontr-0d1210-supabase.vercel.app/docs/contributing)
|
| --- | --- |
|
![contributing-before](https://moijyfpvgnmgoxvwcikq.supabase.co/storage/v1/object/public/pr-proof/supabase/supabase/pr52536/contributing-before-e1d4b706.png)
| <img width="1388" height="1283" alt="image"
src="https://github.com/user-attachments/assets/108856e9-0c53-4ca3-ae0e-0c2a0aedeab3"
/> |

### Test plan

- [ ] Compare the production and preview pages in the table above.
- [ ] On the preview, read How to contribute and confirm the three
steps.
- [ ] Open the Get started card and confirm it lands on
`apps/docs/CONTRIBUTING.md`.
- [ ] Confirm the card text covers authoring, where the docs source
lives, and how the docs app works.

---------

Co-authored-by: Nik Richers <nik@validmind.ai>
2026-11-04 16:11:28 -07:00
Kody JacksonandClaude Haiku 5.5 14ca6c0455 feat(docs) - move docs redirects into docs app directly (#52248)
## Problem

Several:
- using above recommended # of redirects in the apps/www configuration
-- currently around ~1275, so 275 above the recommended limit -- which
leads to degraded performance for _every_ request going through the
first zone (including the dashboard, I'd think).
  ```
www:build: www:build:next: Warning: total number of custom routes
exceeds 1000, this can reduce performance. Route counts:
  ```
- We want to add more redirects over time. The current approach doesn't
allow us to do so without cost.
  
- No ability to test docs redirects in previews, which makes reviewing
and merging in changes riskier than it should be. The fact that we _can_
test the changes in this PR is a huge improvement.

## Solution

Diff approach, but related to #51193

Moves docs redirects into the docs app directly, splitting them between
[next.config.mjs](https://vercel.com/docs/routing/redirects/configuration-redirects)
(dynamic) and [Vercel's bulk
redirects](https://vercel.com/docs/routing/redirects/bulk-redirects)
(static).

```txt
apps/
├── docs/
│   ├── lib/
│   │   └── redirects/
│   │       ├── README.md                            # process and rules for adding redirects
│   │       ├── static-redirects.json               # source: one-to-one /docs entries (hand-edited)
│   │       ├── dynamic-redirects.js               # conditional /docs entries + dev/preview rules
│   │       └── generated/
│   │           └── static-redirects-md-variants.json  # .md guides variants generated in pre-build
```

B/c this -- in itself -- also puts us above the 1000 redirects,
separates out redirects based on their _type_:
- Dynamic redirects, live in a .js folder -> referenced in
next.config.mjs. These are not support
- Static redirects live in a json folder (required for Vercel bulk
redirects) -> then referenced in the vercel.json config

Also adds `.md` variant logic to both -- we can actually see a _lot_ of
these paths are hit within analytics. Quick sample over the past 24
hours:

```
path, code, # of hits
/docs/guides/monitoring-and-debugging.md	308	1768
/docs/guides/api/api-keys.md	308	722
/docs/guides/auth/server-side/nextjs.md	307	381
/docs/guides/auth/social-login/auth-google.md	308	231
/docs/guides/getting-started/mcp.md	308	218
/kb/troubleshooting/formatting-support-requests-for-faster-resolution.md	308	159
/docs/guides/troubleshooting/formatting-support-requests-for-faster-resolution-616717.md	308	156
/docs/guides/local-development/overview.md	308	139
/docs/guides/telemetry/logs.md	308	129
/kb/sitemap.md	308	117
/docs/guides/auth/social-login/auth-apple.md	308	103
/kb/troubleshooting/rotating-anon-service-and-jwt-secrets-1Jq6yd.md	308	97
```

The exact method for generating these .md variants could use a sanity
check:
- Dynamic - follows the existing logic from the apps/www
- Static - adds a prebuild script to automatically create .md variants
for `/docs/guides` links. I _think_ this will work even though the
output is gitignored by default... but remains to be seen.

## Preview links

- [Dynamic path, no
.md](https://docs-git-kody-devrel-723-redirects-rework-supabase.vercel.app/docs/guides/reports/reports)
- [Dynamic path,
.md](https://docs-git-kody-devrel-723-redirects-rework-supabase.vercel.app/docs/guides/reports/reports.md)
- [Static path, no
.md](https://docs-git-kody-devrel-723-redirects-rework-supabase.vercel.app/docs/guides/api/joins-and-nesting)
- [Static path,
.md](https://docs-git-kody-devrel-723-redirects-rework-supabase.vercel.app/docs/guides/api/joins-and-nesting.md)

## Builds

<img width="1128" height="289" alt="image"
src="https://github.com/user-attachments/assets/3cbbb111-e7b8-4922-ba8c-23cbc0bb3ddc"
/>

## Go-live

- [ ] Sign off on restructure from Growth Eng + Docs team.
- [ ] Reviewer double-check with agent that a) this contains largely the
same set as the current set in www and b) that these resolve to 200s.
For a, there are a few small differences due to cleanup + re-ordering
redirects that didn't previously work.
- [ ] In the docs project, purchase a batch of 25,000 bulk redirects in
Vercel (builds fail if you don't have the quota with `Bulk redirects
limit exceeded. Attempting to add 1,013 redirects to a deployment, but
only 1,000 available. Visit
https://vercel.com/supabase/docs/settings/advanced#bulk-redirects to
increase bulk redirects capacity.`)
- [ ] Move the disabled redirects back into the main folder, and confirm
builds work.
- [x] Update `write-the-docs` skill to mention redirects

---------

Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
2026-10-27 10:43:07 -05:00
Miranda Limonczenko 36371de151 docs: trim CONTRIBUTING to repo mechanics and point at the style guide (#50743)
Part 3 of 3. Stack: #50742 → #50744 → #50743. Review #50742 and #50744
first.

Closes DOCS-1177

## Problem

`CONTRIBUTING.md` mixed how to write a page with how the repo is laid
out. That's why it reached 568 lines, and why a contributor looking for
either half reads past the other.

#50742 gives the writing half its own home.

## Solution

Trim `CONTRIBUTING.md` to repo mechanics, 568 lines down to 163.

**Removed**, now in the style guide: general principles, information
types, document types, components and elements, styling and grammar,
word usage.

**Kept**: the skills table, repo organization, guide and reference
structure, content reuse, search. Content listings keeps its data file,
ID rules, and test command here; the when-to-use-one part is in the
style guide.

**Added**: a table linking each style guide file.

Wire the contributor-facing entry points at the guide:

- `apps/docs/AGENTS.md` — gains a style guide section listing each file
separately, so an agent can load one file without the others. This
auto-loads for anything under `apps/docs`, making it the
highest-leverage pointer in the repo.
- Root `AGENTS.md` — claimed the skills are "the source of truth for
conventions." For docs content style that's now the guide, with the
skills as the process that applies it.
- `.github/pull_request_template.md`, `.coderabbit.yaml`,
`apps/docs/README.md`, `apps/docs/DEVELOPERS.md` — updated paths.

Drop the `.prettierignore` exemption for `apps/docs/CONTRIBUTING.md`.
It's short enough to format now, and a repo that publishes a style guide
shouldn't exempt its own contributing doc.

## Notes for review

Discoverability in a markdown-only guide is entirely these pointers, so
they're the load-bearing part of this PR rather than cleanup.

Both surviving anchor links into `CONTRIBUTING.md` target
`#ai-agent-skills-for-docs-authoring`, which is kept. No dangling
anchors.

This PR sits last in the stack on purpose. It deletes the style sections
that seven skill instructions referenced, so it has to land after #50744
rewires them.

## Manual testing

1. Open `apps/docs/CONTRIBUTING.md` and confirm every remaining section
is repo mechanics, and the style guide table links resolve.
2. Confirm `apps/docs/AGENTS.md` names each style guide file, in size
order: `WORD_LIST`, `01-voice-and-tone`, `02-elements`,
`03-page-structure`.
3. Run `grep -rn "apps/docs/WORD_LIST" --include="*.md"
--include="*.yaml" . | grep -v node_modules` and confirm only the
intentional stub matches.
4. Run `npx prettier --config prettier.config.mjs --check
apps/docs/CONTRIBUTING.md`.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Documentation**
* Updated contributor guidance to distinguish writing conventions from
repository mechanics, with the style guide as the reference for
documentation style.
* Added style guide links and clarified when to use the writing and
editing skills.
* Revised the docs contribution guide with a style guide file list and
steps for adding content listings.
* Updated the pull request checklist to direct contributors to the
documentation skills for style guidance.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-25 20:22:47 -07:00
Miranda Limonczenko 1608b16687 chore(docs) Direct contributors to the docs authoring skills (#50600)
Prerequisite for
[DOCS-1289](https://linear.app/supabase/issue/DOCS-1289/get-the-linter-to-fix-what-it-flags-or-retirereplace-the-linter).

## Problem

The `write-the-docs` and `edit-the-docs` skills carry the docs style
guide, so a contributor who uses them writes to the guide without having
read it. Right now nothing points a contributor at them.
`apps/docs/CONTRIBUTING.md` describes the skills as an option for agent
users, halfway down a 559-line page, and no other contributor-facing
file mentions them at all.

## Solution

- **CodeRabbit reminder.** One path instruction for
`apps/docs/content/**/*.mdx`. When a page collects two or more style,
terminology, or structure issues, CodeRabbit adds a single comment
pointing the author at `/write-the-docs` or `/edit-the-docs`. A single
nit gets no pointer, so the comment reads as a signal rather than
boilerplate.
- **Docs CONTRIBUTING.** The intro lists the skills by task, draft
through self-review, before the style rules, and links the existing
skills section for framing and architecture. The section opener now
reads as an expectation rather than a conditional, with the agent
mechanics moved to a second paragraph.
- **Root CONTRIBUTING.** A pre-flight check under Pull Requests, with
the same task list nested under it. Matches the docs checklist item in
#50591.
- **Word list.** Names the skills that apply the list.
- **Docs README and DEVELOPERS.** One sentence in each Contributing
section.

**Not in this PR:** CodeRabbit reminds, it doesn't enforce. Feeding the
two `SKILL.md` files to `knowledge_base.code_guidelines` would make it
review docs content against the style guide. That's a decision for
DOCS-1289 itself.

**Verification caveat:** this PR changes no MDX under
`apps/docs/content/`, so the new path instruction doesn't fire on its
own review.

## Manual testing

1. See all new content references in the diff.
2. Review for clarity and value.
3. Consider suggesting other ways to promote the usage of this skill to
all docs contributors.
2026-09-21 10:07:21 -07:00
Chris Chinchilla a40252e6c1 docs: Update contribution docs (#42402)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Simplified the local setup instructions for running the docs site
during development.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-05-29 15:55:10 +02:00
Terry SuttonandCharis Lam bb0306061d Chore/update to next 15 (#30075)
* Update Next.js docs for v15

* More awaiting

* remove async for pages router

* fix for dashboard connection guide

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2024-10-24 12:56:20 -02:30
Charis 3b781ab6bb update and streamline all the docs readmes (#20201) 2024-01-08 13:49:42 -05:00
Clarence 4dda2ad7ac update README.md (#19982) 2024-01-03 10:23:59 +00:00
Terry Sutton 3a78460b76 Update readme and developers docs 2022-11-03 14:29:10 -02:30
Joshen Lim 986cccb9b1 Rename temp docs to docs 2022-11-03 20:40:03 +07:00
Copple f83c1ca018 renames folders 2022-04-26 12:44:07 +02:00
Copple 8c4993a3be init turbo 2022-04-18 17:26:20 +02:00