Commit Graph
3 Commits
Author SHA1 Message Date
Kody JacksonandClaude Haiku 5.5 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>
2026-10-30 12:12:16 -05:00
Jeremias Menichelli 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)
2026-10-26 11:04:54 +01:00
Jeremias Menichelli 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)
2026-10-21 15:40:37 +02:00