Jeremias Menichelli
575ac8c645
[DOCS-979] feat(Docs): Generate new markdown files for reference pages ( #46727 )
...
In this PR:
- The `llms.ts` script is removed from the pipeline. It was just
iterating over the sections of the SDK JSON files to generate _dummy_
text files for LLMS to consume. But with a lot of inconsistencies and
mistakes.
- There's a new script that builds markdown files from the SDK
definition files.
- The Management API now has a definition file too, it was missing
before.
- On the www project now there are redirects for the reference text
files to the new markdown files in the docs project.
- NPM scripts have received better names so that prebuild ones are
smaller and all are easier to differentiate.
2026-06-09 10:39:55 +02:00
Greg Richardson
b539cc0529
feat(docs): return page suggestions in markdown 404 pages ( #45439 )
...
Markdown guides (`/docs/guides/**/*.md`) that 404 currently return a
text/plain `Not found` response. Since agents often hallucinate URL
paths, this PR proactively provides page suggestions so that agents can
find the page they are looking forward without further guessing. It uses
the docs Content API to fetch related pages, similar to the [HTML 404
page](https://supabase.com/docs/404 ):
```
# 404 - Page Not Found
The page `/docs/guides/mcp.md` does not exist.
## You might be looking for...
- [Model context protocol (MCP)](https://supabase.com/docs/guides/getting-started/mcp.md )
- [Building an MCP Server with mcp-lite](https://supabase.com/docs/guides/functions/examples/mcp-server-mcp-lite.md )
- [Model Context Protocol (MCP) Authentication](https://supabase.com/docs/guides/auth/oauth-server/mcp-authentication.md )
- [Deploy MCP servers](https://supabase.com/docs/guides/getting-started/byo-mcp.md )
- [Enabling MCP Server Access](https://supabase.com/docs/guides/self-hosting/enable-mcp.md )
See also: [Changelog](https://supabase.com/changelog.md )
```
## How to test
1. Use curl to fetch a non-existent page with an `.md` extension:
```shell
curl -i
https://docs-git-docs-markdown-404-suggestions-supabase.vercel.app/docs/guides/mcp.md
```
Confirm that relevant pages are suggested (ballpark - our search algo
needs some improvement). Also confirm that the response has content type
`text/markdown`.
2. Use curl to fetch a non-existent page using the `Accept:
text/markdown` header
```shell
curl -i -H 'Accept: text/markdown' \
https://docs-git-docs-markdown-404-suggestions-supabase.vercel.app/docs/guides/mcp
```
And confirm the same result as 1.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* 404 pages for missing guides now return a formatted Markdown response
with proper content-type and no-cache headers, and include up to five
related documentation suggestions to help users find relevant content.
* **Chores**
* Build environment now preserves an additional hosting URL variable to
improve build/task consistency.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-05-05 08:40:44 +02:00
Jeremias Menichelli
04d08fbba7
fix(Docs): Add cache-control and default to HTML content ( #43989 )
2026-03-19 19:45:15 +01:00
Jeremias Menichelli
8b4bf646fc
feat(Docs): Add copy as markdown and AI tools to guide ( #43355 )
2026-03-04 16:31:02 +01:00