From bba49d9c7dafaf53c638c223e0d9eebf505e0896 Mon Sep 17 00:00:00 2001 From: liyang Date: Thu, 26 Dec 2024 19:43:46 +0800 Subject: [PATCH] chore:reduce the priority of docs v1.2 --- docusaurus.config.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docusaurus.config.js b/docusaurus.config.js index 848a493022c06..be58c49432ead 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -178,6 +178,21 @@ const config = { trackingID: 'G-DT7W9E9722', anonymizeIP: true, }, + sitemap: { + changefreq: 'weekly', + priority: 0.5, + filename: 'sitemap.xml', + createSitemapItems: async (params) => { + const {defaultCreateSitemapItems, ...rest} = params; + const items = await defaultCreateSitemapItems(rest); + for(let item of items){ + if(item.url.includes('docs/1.2')){ + item.priority = 0.2; + } + } + return items; + }, + }, }), ], ],