From 7bcc9e681ab1fd9373ba56ff452885e9084342d4 Mon Sep 17 00:00:00 2001 From: jingyang <3161362058@qq.com> Date: Tue, 12 Dec 2023 17:59:33 +0800 Subject: [PATCH] feat:docs robots.txt Signed-off-by: jingyang <3161362058@qq.com> --- docs/website/docusaurus.config.js | 2 +- docs/website/static/robots.txt | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 docs/website/static/robots.txt diff --git a/docs/website/docusaurus.config.js b/docs/website/docusaurus.config.js index 0eb8de092ee..d5b0d89049d 100644 --- a/docs/website/docusaurus.config.js +++ b/docs/website/docusaurus.config.js @@ -6,7 +6,7 @@ const generateAlgoliKey = () => "ce5b8e1e4d0d35ff587caf75ac404df4" const config = { title: "Sealos: 专为云原生开发打造的以 K8s 为内核的云操作系统", tagline: "Kubernetes-kernel-based cloud os! Let's sealos run kubernetes", - url: "https://sealos.io/", + url: process.env.SEALOS_LANG === "zh-Hans" ? "https://sealos.run/" : "https://sealos.io/", baseUrl: "/", onBrokenLinks: "warn", onBrokenMarkdownLinks: "warn", diff --git a/docs/website/static/robots.txt b/docs/website/static/robots.txt new file mode 100644 index 00000000000..67a7f5c36f5 --- /dev/null +++ b/docs/website/static/robots.txt @@ -0,0 +1,7 @@ +User-agent: * +Disallow: + +Sitemap: https://sealos.io/sitemap.xml +Sitemap: https://sealos.io/zh-Hans/sitemap.xml +Sitemap: https://sealos.run/sitemap.xml +Sitemap: https://sealos.run/en/sitemap.xml