mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
bot/decrease-eslint-ratchet-baselines
4
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
a63ccbad12 |
feat(kb): add last-updated dates to markdown exports (#54538)
## Problem The Knowledge Base HTML pages show an "Updated" date, but their `.md` exports had no date. Readers and tools that use the markdown versions couldn't tell how recent a guide, FAQ, or troubleshooting article was. ## Solution Every Knowledge Base `.md` export now has a `Last updated: YYYY-MM-DD` line right under its title and description. It uses the date the HTML page shows. Guides and FAQs take it from the frontmatter `lastEdited`. Troubleshooting articles take it from the `troubleshooting_entries.date_updated` lookup the troubleshooting page already does, and fall back to frontmatter `lastEdited`. A page with no date gets no line. A failed database lookup logs a warning, and the export still builds. The export and the troubleshooting lookup share one date parser in `format-date.ts`. ## How to verify 1. Open a guide export on the preview, for example `/kb/guides/best-astro-authentication-providers.md`. Below the description it reads `Last updated: ` with the date from the HTML page's "Updated" label. 2. Open an FAQ `.md` export from `/kb/sitemap.md` and check that it has the same line. 3. Open a troubleshooting `.md` export from `/kb/sitemap.md`. If the HTML page shows an "Updated" date, the export shows the same day. 4. Run `pnpm --filter kb exec vitest run scripts/generate-markdown.test.ts src/lib/format-date.test.ts`. It covers the date line and the date parsing. ## Checks Ran `vitest run scripts/generate-markdown.test.ts src/lib/format-date.test.ts` in apps/kb (29 passed), `pnpm turbo run lint --filter=kb`, `tsc --noEmit -p apps/kb` (no errors in the changed files), and `oxfmt --check` on the changed files. Ran `tsx scripts/generate-markdown.ts` locally: every guide and FAQ export got the line, and the sitemap links are unchanged. A sample troubleshooting file with no database credentials fell back to its frontmatter date. The database lookup for troubleshooting wasn't run, because the sandbox has no credentials. ## Checklist - [x] I have read the [Contributing Guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] I have added tests for the change - [ ] I have checked that the change works in the preview deployment ## Feedback for Tedd To ask Tedd for a change to this PR, reply in Tedd's session on [DOCS-1838](https://linear.app/supabase/issue/DOCS-1838/add-last-modified-dates-to-md-versions-of-pages). Tedd doesn't read comments on this PR. --------- Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.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) |