docs: Document context servers (#21170)

This PR adds documentation for context servers.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-11-25 11:05:14 -05:00 committed by GitHub
parent b83f104f6e
commit 385c447bbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 116 additions and 10 deletions

View file

@ -3,15 +3,6 @@ export default {
const url = new URL(request.url);
url.hostname = "docs-anw.pages.dev";
// These pages were removed, but may still be served due to Cloudflare's
// [asset retention](https://developers.cloudflare.com/pages/configuration/serving-pages/#asset-retention).
if (
url.pathname === "/docs/assistant/context-servers" ||
url.pathname === "/docs/assistant/model-context-protocol"
) {
return await fetch("https://zed.dev/404");
}
let res = await fetch(url, request);
if (res.status === 404) {