From 283b3753c1353d43b9e98e8e9543e17fffc59c06 Mon Sep 17 00:00:00 2001 From: andatoshiki Date: Sat, 14 Sep 2024 03:39:47 -0700 Subject: [PATCH] fix(sitemap): remove legacy yet outdated third-party sitemap generation utility components at build end & switchi to officially supported sitemap generation config of native vitepress with the correct notebook site hostname --- docs/.vitepress/config.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 84463394..37794c11 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -6,7 +6,7 @@ import { head } from './config/head' import { themeConfig } from './config/theme' import { withTwoslash } from '@andatoshiki/vitepress-plugin-shiki-twoslash' -import { generateSitemap as sitemap } from 'sitemap-ts' +// import { generateSitemap as sitemap } from 'sitemap-ts' import { genFeed } from './plugins/genFeed' import { createWriteStream } from 'node:fs' import { resolve } from 'node:path' @@ -47,9 +47,12 @@ export default withTwoslash( }, ignoreDeadLinks: true, async buildEnd(siteConfig) { - await sitemap({ hostname: 'https://chodocs.cn/' }) + // await sitemap({ hostname: 'https://note.toshiki.dev/' }) await genFeed(siteConfig) }, + sitemap: { + hostname: 'https://note.toshiki.dev' + } }) ) customElements // custom element tags of markdown-it-katex in vitepress