From b17533a19748c9e46991fefe09b7bb40bd682263 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Thu, 3 Dec 2026 09:42:20 -0500 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E7=AB=99=E7=82=B9=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vitepress/config.mts | 3 +++ docs/public/robots.txt | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 docs/public/robots.txt diff --git a/.vitepress/config.mts b/.vitepress/config.mts index a876353..3a850c3 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -66,6 +66,9 @@ export default defineConfig({ cleanUrls: true, lastUpdated: false, ignoreDeadLinks: true, + sitemap: { + hostname: SITE_URL, + }, head: [ // Google Tag Manager ['script', {}, `(function (w, d, s, l, i) { diff --git a/docs/public/robots.txt b/docs/public/robots.txt new file mode 100644 index 0000000..8039ac6 --- /dev/null +++ b/docs/public/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Allow: / + +Sitemap: https://docs.isharkfly.com/sitemap.xml -- 2.54.0