Closes [DOCS-1289](https://linear.app/supabase/issue/DOCS-1289/get-the-linter-to-fix-what-it-flags-or-retirereplace-the-linter) Stacked on #50600, which points contributors at the authoring skills. Merge that one first. ## Problem Contributors experienced friction with the linter. They felt nickle and dimed for tiny nits and felt detracted from the work itself. PRs would become noisy with tiny one-word suggestions. Additionally, our homegrown linter is not very intelligent, causing frequent overrides. ## Solution This removes the linter entirely in favor of directing contributors to use SKILLS instead. The removal entails... - **CI.** Delete the three `docs_lint` workflows: the PR check, the external-PR comment companion, and the nightly `--fix` bot. Drop the stale `zizmor.yml` ignore entry for the deleted workflow. - **Tooling.** Delete `supa-mdx-lint.config.toml` and the 14 rule files. Drop the `lint:mdx` script and the `@supabase/supa-mdx-lint` dependency from docs, learn, and ui-library, and regenerate the lockfile. - **Content.** Remove the 181 directives. A separate commit carries Prettier's reformatting of the tables and blank lines those comments had suppressed, so the deletion commit stays readable. No prose changes. - **Style guide.** The word list states each rule directly instead of describing what the linter flagged. Every term survives, including the phrase groups that mirrored `Rule004ExcludeWords`. - **Skills.** `write-the-docs`, `edit-the-docs`, and `review-the-docs` drop `pnpm lint:mdx` from their self-review commands and check the word list directly. `ask-the-docs`'s CI reference drops both workflows. ## Manual testing 1. Run `git grep -i supa-mdx-lint -- . ':!pnpm-lock.yaml'`. No matches. 2. Run `pnpm install --frozen-lockfile --lockfile-only`. It passes, so the lockfile matches the three trimmed manifests. 3. Run `git diff master...HEAD --name-only --diff-filter=ACMR | grep -E '\.(md|mdx)$' | xargs npx prettier --config prettier.config.mjs --check`. All changed markdown passes. 4. Open the [reformatted filter table](https://docs-git-docs-retire-mdx-linter-supabase.vercel.app/docs/guides/observability/logs#filter-events) on the preview and compare it with [production](https://supabase.com/docs/guides/observability/logs#filter-events). The table renders the same. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Documentation guidance now uses manual prose and terminology review with the shared word list. * Clarified storage configuration and common Realtime channel mistakes. * Improved table formatting, text wrapping, and selected reference links. * Updated documentation authoring and review guidance. * **Chores** * Retired automated MDX linting from workflows and local validation commands. * Removed lint-suppression markers throughout documentation without changing instructions. * Added targeted documentation review guidance for pull requests. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
5.1 KiB
name, description
| name | description |
|---|---|
| test-the-docs | Execute runnable docs snippets and examples inside a disposable Docker Compose sandbox (runner container + local Supabase stack via `supabase start`). Use after Draft or during Self-review when asked to test the docs, fact-check CLI/SQL/code samples, or produce a verification report for a docs PR. Complements review-the-docs build and review checks; does not replace them. |
Test the docs
Runs procedural docs content inside disposable containers, not on the host shell and not against production. Produces a verification report for the PR body / self-review note.
For markdown rebuilds, example-app triage, and PR review, use review-the-docs. For Frame/Shape and cross-repo product lookup, use pm-the-docs.
When to invoke
- After Draft, before or during Self-review (checklist Stage 4).
- Standalone: "test the docs", "fact-check these snippets", "run the examples".
- Content or tutorial PRs that add or change procedural fenced blocks.
Not for: generated reference pages, docs-app architecture questions, or hosted/production projects.
Core rules
- Never run against production. Local stack or temp dir only.
- Never run MDX fences on the host shell. Use the Compose sandbox — see reference/sandbox-setup.md and
sandbox/run.sh. - Proportional: Tier A (one end-to-end path) is required; Tier B spot-checks new/changed procedural blocks, not every fence on every page.
- Product bugs found while testing get linked or filed separately; fix docs only when the docs are wrong.
Phases
1. Scope
From explicit MDX paths, or:
git diff --name-only master...HEAD -- 'apps/docs/content/**'
Skip generated reference output under features/docs/generated/.
2. Extract
List runnable artifacts from changed MDX:
- Fenced blocks:
bash,sh,sql,javascript,typescript,tsx,jsx $CodeSamplepaths → treat asexample-app(build underexamples/)- Skip:
mermaid, incomplete illustrative fragments, partial-only includes
3. Classify
Assign each artifact a class per reference/snippet-classes.md:
| Class | Action |
|---|---|
runnable-local |
Run in temp stack / temp dir |
runnable-with-setup |
Run after documented setup (migrations, seed) |
example-app |
npm install && npm run build in examples/… |
illustrative-only |
No run required |
deferred |
Record reason; do not silently skip |
4. Sandbox setup
Follow reference/sandbox-setup.md and drive lifecycle with sandbox/run.sh:
- Refuse if the host is running as root.
- Require
docker+docker info+docker composeon the host for any in-container run. - Gate profiles per artifact class:
runnable-local/runnable-with-setupthat need DB/API:./sandbox/run.sh up-stack(DinD + runner →supabase init/supabase startin/work).- CLI-only blocks with no DB: still use a runner profile so fences stay off-host; skip
supabase startwhen unused. example-app:TTD_EXAMPLE_DIR=<repo>/examples/<app> ./sandbox/run.sh up-examples(Node in runner; no DinD). Do not defer solely because the host lacks a global Supabase CLI.
- Always
./sandbox/run.sh downwhen finished (cleanup trap on the host session). - Capture connection URLs only inside the runner; never paste credential fields into notes or logs.
If a required prerequisite for that artifact is unavailable, mark that artifact deferred with the specific reason — never silent skip, and do not defer unrelated classes.
5. Execute
- Tier A: one copy-pasteable end-to-end path from the page.
- Tier B: each new/changed block classified
runnable-*orexample-app(build and record the result). - Run every fence via
./sandbox/run.sh execorexec-timeout(never a bare host shell). - Bound every artifact: default 60s for shell / SQL / JS / TypeScript /
tsx/jsx; allow longer forexample-appinstall/build (e.g. 5m). On timeout, kill the process group inside the runner, then recordfailordeferredwith reason. curl/wgetonly to filtered stack URLs (or page-documented local endpoints).npm/npx/nodeonly for mountedexample-appbuilds.- Capture exit code, stdout/stderr (redact secrets), and observed vs expected behavior.
6. Report
Write a verification report per reference/verification-report.md for the PR body / self-review note.
Related skills
write-the-docs— Draft; hands off here before PRreview-the-docs— build/classify; consumes verification reportpm-the-docs— Frame/Shape; universe for cross-repo product lookup