mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
docs/tutorial-template
5
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
2a2ef0483e |
feat(kb) - allow community contributions (#53100)
## Problem
We want to highlight community-contributed content in the `/kb`, while
at the same time differentiating it from Supabase authored resources.
## Solution
Adds the following:
- A new content collection for `communityGuides`, which pulls from an
associated JSON file
- That file is an array of objects `{ title, url, description, topics,
lastEdited }` pointing to external guides
- Those guides are then pulled a) into their own topic page
(`Community`) and b) into existing guides listings. In the existing
guides listings, they're marked with a `external domain ->` indicator.
## Screenshots
<img width="842" height="409" alt="Image"
src="https://github.com/user-attachments/assets/da979b11-f07b-4e3c-a00b-45fbb68d5fe5"
/>
<img width="1207" height="726" alt="Image"
src="https://github.com/user-attachments/assets/72d3d3a0-f2cb-437d-8194-9f3904b49bc7"
/>
## Preview links
- [Community
page](https://kb-git-kody-devrel-837-community-content-pattern-supabase.vercel.app/kb/topics/community)
- [Database
page](https://kb-git-kody-devrel-837-community-content-pattern-supabase.vercel.app/kb/topics/platform)
---------
Co-authored-by: anthony lio <lionnet.ant@gmail.com>
|
||
|
|
2ac3b77594 |
chore: replace pnpm hooks and chains with turbo task dependencies in the remaining apps (#53169)
## Problem `ui-library`, `design-system`, `learn`, `kb`, `www` and `studio` still order their build, dev and typecheck steps with pnpm `pre`/`post` hooks, `&&` chains and `run-p`. Turbo can't see those steps, so it can't cache or parallelize them. Follow-up to #52556, which migrated `apps/docs`. Part of [FE-4977](https://linear.app/supabase/issue/FE-4977/migrate-remaining-apps-pnpm-scripts-to-turbo-tasks). ## Solution The ordering now lives in each app's `turbo.jsonc` as `dependsOn`, the hooks and chains are gone, and scripts with same-package prerequisites are wrapped with `maybe-turbo`. `node .agents/skills/turbo-scripts/scripts/audit.mjs apps/<name>` reports no findings for any of the six apps. - **`ui-library`, `design-system`, `learn`:** content, registry and markdown steps are turbo tasks with declared outputs. `dev:content` uses the `with` key. `build:next` and `dev:next` are folded into `build` and `dev`. `ui-library`'s markdown task now depends on `build:registry`, which the old chain hid. `pnpm --filter library build:registry` still regenerates the committed registry output. - **`kb`:** `fetch:federated-content` is uncached, and the tasks that read its output use `jit` inputs. - **`www`:** - `build` depends on `docs#build:guides-markdown`, so federated content is fetched once instead of twice. - `build:next` is folded into `build`. - `typecheck` runs `next typegen` itself. - `turbo-build.test.ts` is updated for the new task graph. It reads `PATH` through a copy of the env, because `turbo/no-undeclared-env-vars` flags it once the `passThroughEnv: ["*"]` wildcard is gone. - `passThroughEnv: ["*"]` is gone, and the env vars the content scripts read are declared. - **`studio`:** `typecheck` runs `next typegen` inline, and `lint` depends on a new `lint:type-checks` task. The `predev` turbopack cache clean moved into `scripts/dispatch.js`. It's a local side effect, and making it a turbo task would route `dev` through turbo's strict env filtering, which drops `NODE_ENV`, `MODE` and `STUDIO_FRAMEWORK`. ## Review instructions - For each app, check that a second `pnpm build` hits the cache. `www`'s fetch and content tasks re-run by design, since they're uncached. - Not verified: the `www` and `studio` dev servers started from the repo root, a Studio production build, the e2e flow, and runs with real production credentials. - `kb`'s build reads a remote database that turbo can't hash. It stays cached, keyed on `SUPABASE_URL`. Say if you'd rather make it uncached. - Builds rewrite two tracked files, `apps/docs/public/markdown/manifest.json` and `apps/www/public/customers-rss.xml`, so a fresh checkout can miss the cache once. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
17c2985e16 |
fix(kb) - include faqs in sitemap.md (#52559)
## Problem 2 gaps: - Missing FAQs in the sitemap.md - Experiment to redirect requests to the homepage to sitemap.md ## Preview links ### FAQ addition Now includes faqs in https://kb-git-kody-devrel-813-sitemapmd-tweaks-supabase.vercel.app/kb/markdown/sitemap.md <img width="1338" height="669" alt="image" src="https://github.com/user-attachments/assets/fb5174f7-23f4-4187-8fed-1fb7ca9fa216" /> ### markdown behavior ``` curl "https://kb-git-kody-devrel-813-sitemapmd-tweaks-supabase.vercel.app/kb" \ -H "Accept: text/markdown" ``` ``` # Supabase Knowledge Base In-depth guides, tutorials, troubleshooting, and explainers for best practices for Supabase ## Topics - [Migration](https://supabase.com/kb/topics/migration.md) - [Comparison](https://supabase.com/kb/topics/comparison.md) - [Rundowns](https://supabase.com/kb/topics/rundowns.md) - [Troubleshooting](https://supabase.com/kb/topics/troubleshooting.md) - [Tutorials](https://supabase.com/kb/topics/tutorials.md) - [Storage](https://supabase.com/kb/topics/storage.md) - [Auth](https://supabase.com/kb/topics/auth.md) - [Database](https://supabase.com/kb/topics/database.md) - [Edge Functions](https://supabase.com/kb/topics/edge-functions.md) - [Queues](https://supabase.com/kb/topics/queues.md) .... ``` --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> |
||
|
|
e0e6a01905 |
chore: Remove custom ids from md headings (#52230)
## Problem Markdown for agents hold the custom IDs, which leak into search embeddings. <img width="701" height="231" alt="Screenshot 2026-10-23 at 15 07 17" src="https://github.com/user-attachments/assets/1e79e282-b954-4bf5-850c-8f0074e5b094" /> ## Solution Update markdown generation scripts to remove them. <img width="399" height="297" alt="Screenshot 2026-10-23 at 15 07 11" src="https://github.com/user-attachments/assets/af5183b8-8585-450b-a624-9127e4babfe8" /> <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. Open docs preview link. 1. Go to a page that has a custom id in their headings 1. Open the corresponding markdown file by adding .md extension to the URL 1. Markdown version of the page should have deleted custom IDs in headings. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] 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) |
||
|
|
497cbecfd3 |
feat: Generate sitemap.md file in kb, fix markdown slug reconciliation, update llms file (#52076)
## Problem We need a general entry level file for kb discovery for agents. ## Solution - Generate a sitemap.md file with all relevant links listed within the project - Set redirects so supabase.com/kb/sitemap.md and supabase.com/kb.md lead to that file - Add link to the file in the llms.txt file - Fix some slug reconciliation issues within troubleshooting suffixes - Move scripts to .ts to follow architectural conventions <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. Make sure troubleshooting markdown files work correctly, go to the preview site of kb in this PR, open a troubleshooting guide with a suffix, add .md at the end, it should return markdown version of the page 2. Go to the preview site of kb in this PR, add /sitemap.md, a markdown file with a list of all topics, guides and troubleshooting articles should appear (sadly www redirects cannot be tested on preview environments) ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] 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) |