From 14be67d34dfd7c8db69a1cd74848be52030214ec Mon Sep 17 00:00:00 2001 From: chickenlj Date: Wed, 18 Dec 2024 17:57:36 +0800 Subject: [PATCH] remove ai pages, use 301 to redirect top new pages --- src/components/ai/AiButton.astro | 2 +- src/components/ai/ArchitectureDiagram.astro | 24 - src/components/ai/CoreFeature.astro | 92 ---- src/components/ai/Footer.astro | 305 ------------- src/components/ai/HomeIntroduce.astro | 74 --- src/components/common/Header/navbar.ts | 10 - src/components/home/HomeIntroduce.astro | 2 +- src/constant.ts | 7 - .../docs/2023/en/user-guide/ai/overview.md | 67 --- .../docs/2023/en/user-guide/ai/quick-start.md | 172 ------- .../docs/2023/zh-cn/user-guide/ai/overview.md | 67 --- .../2023/zh-cn/user-guide/ai/quick-start.md | 172 ------- src/content/docs/ai/_sidebar.json | 44 -- src/content/docs/ai/en/concepts.md | 151 ------- src/content/docs/ai/en/get-started.md | 121 ----- src/content/docs/ai/en/overview.md | 29 -- .../en/practices/playground-flight-booking.md | 105 ----- src/content/docs/ai/en/practices/rag.md | 102 ----- .../docs/ai/en/tutorials/chat-client.md | 422 ------------------ .../docs/ai/en/tutorials/chat-model.md | 98 ---- src/content/docs/ai/en/tutorials/embedding.md | 187 -------- .../docs/ai/en/tutorials/function-calling.md | 255 ----------- src/content/docs/ai/en/tutorials/memory.md | 85 ---- src/content/docs/ai/en/tutorials/prompt.md | 183 -------- src/content/docs/ai/en/tutorials/retriever.md | 124 ----- .../docs/ai/en/tutorials/structured-output.md | 104 ----- .../docs/ai/en/tutorials/vectorstore.md | 145 ------ src/content/docs/ai/zh-cn/concepts.md | 151 ------- src/content/docs/ai/zh-cn/get-started.md | 121 ----- src/content/docs/ai/zh-cn/overview.md | 29 -- .../practices/playground-flight-booking.md | 109 ----- src/content/docs/ai/zh-cn/practices/rag.md | 102 ----- .../docs/ai/zh-cn/tutorials/chat-client.md | 422 ------------------ .../docs/ai/zh-cn/tutorials/chat-model.md | 98 ---- .../docs/ai/zh-cn/tutorials/embedding.md | 217 --------- .../ai/zh-cn/tutorials/function-calling.md | 255 ----------- src/content/docs/ai/zh-cn/tutorials/memory.md | 85 ---- src/content/docs/ai/zh-cn/tutorials/prompt.md | 183 -------- .../docs/ai/zh-cn/tutorials/retriever.md | 153 ------- .../ai/zh-cn/tutorials/structured-output.md | 104 ----- .../docs/ai/zh-cn/tutorials/vectorstore.md | 170 ------- src/pages/ai/[...slug].astro | 147 ------ src/pages/ai/index.astro | 22 - 43 files changed, 2 insertions(+), 5515 deletions(-) delete mode 100644 src/components/ai/ArchitectureDiagram.astro delete mode 100644 src/components/ai/CoreFeature.astro delete mode 100644 src/components/ai/Footer.astro delete mode 100644 src/components/ai/HomeIntroduce.astro delete mode 100644 src/content/docs/2023/en/user-guide/ai/overview.md delete mode 100644 src/content/docs/2023/en/user-guide/ai/quick-start.md delete mode 100644 src/content/docs/2023/zh-cn/user-guide/ai/overview.md delete mode 100644 src/content/docs/2023/zh-cn/user-guide/ai/quick-start.md delete mode 100644 src/content/docs/ai/_sidebar.json delete mode 100644 src/content/docs/ai/en/concepts.md delete mode 100644 src/content/docs/ai/en/get-started.md delete mode 100644 src/content/docs/ai/en/overview.md delete mode 100644 src/content/docs/ai/en/practices/playground-flight-booking.md delete mode 100644 src/content/docs/ai/en/practices/rag.md delete mode 100644 src/content/docs/ai/en/tutorials/chat-client.md delete mode 100644 src/content/docs/ai/en/tutorials/chat-model.md delete mode 100644 src/content/docs/ai/en/tutorials/embedding.md delete mode 100644 src/content/docs/ai/en/tutorials/function-calling.md delete mode 100644 src/content/docs/ai/en/tutorials/memory.md delete mode 100644 src/content/docs/ai/en/tutorials/prompt.md delete mode 100644 src/content/docs/ai/en/tutorials/retriever.md delete mode 100644 src/content/docs/ai/en/tutorials/structured-output.md delete mode 100644 src/content/docs/ai/en/tutorials/vectorstore.md delete mode 100644 src/content/docs/ai/zh-cn/concepts.md delete mode 100644 src/content/docs/ai/zh-cn/get-started.md delete mode 100644 src/content/docs/ai/zh-cn/overview.md delete mode 100644 src/content/docs/ai/zh-cn/practices/playground-flight-booking.md delete mode 100644 src/content/docs/ai/zh-cn/practices/rag.md delete mode 100644 src/content/docs/ai/zh-cn/tutorials/chat-client.md delete mode 100644 src/content/docs/ai/zh-cn/tutorials/chat-model.md delete mode 100644 src/content/docs/ai/zh-cn/tutorials/embedding.md delete mode 100644 src/content/docs/ai/zh-cn/tutorials/function-calling.md delete mode 100644 src/content/docs/ai/zh-cn/tutorials/memory.md delete mode 100644 src/content/docs/ai/zh-cn/tutorials/prompt.md delete mode 100644 src/content/docs/ai/zh-cn/tutorials/retriever.md delete mode 100644 src/content/docs/ai/zh-cn/tutorials/structured-output.md delete mode 100644 src/content/docs/ai/zh-cn/tutorials/vectorstore.md delete mode 100644 src/pages/ai/[...slug].astro delete mode 100644 src/pages/ai/index.astro diff --git a/src/components/ai/AiButton.astro b/src/components/ai/AiButton.astro index 39f9a5091..779830ffd 100644 --- a/src/components/ai/AiButton.astro +++ b/src/components/ai/AiButton.astro @@ -10,7 +10,7 @@ const t = useTranslations(Astro);