This is an automated email from the ASF dual-hosted git repository. liugddx pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/seatunnel-website.git
The following commit(s) were added to refs/heads/main by this push: new c47f0d7a1a5 [Improve] Update sitemap to improve search result (#338) c47f0d7a1a5 is described below commit c47f0d7a1a5fcd9e779242d10fe0ba7e93cf9da0 Author: Jia Fan <fanjiaemi...@qq.com> AuthorDate: Tue Oct 8 19:52:19 2024 +0800 [Improve] Update sitemap to improve search result (#338) --- docusaurus.config.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 8586eea3c09..0d95151a13b 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -64,7 +64,7 @@ const config = { editLocalizedFiles: true, // Please change this to your repo. editUrl: - "https://github.com/apache/incubator-seatunnel-website/edit/main/", + "https://github.com/apache/seatunnel-website/edit/main/", versions: { current: { path: "", @@ -78,11 +78,23 @@ const config = { showReadingTime: true, // Please change this to your repo. editUrl: - "https://github.com/apache/incubator-seatunnel-website/edit/main/", + "https://github.com/apache/seatunnel-website/edit/main/", }, theme: { customCss: require.resolve("./src/css/custom.css"), }, + sitemap: { + changefreq: 'daily', + priority: 0.5, + filename: 'sitemap.xml', + ignorePatterns: (() => { + const latestVersion = versions[0]; + const oldVersions = versions.filter(version => version !== latestVersion); + const ignorePatterns = oldVersions.map(version => `/docs/${version}/**`); + ignorePatterns.push('/blog/**'); + return ignorePatterns; + })() + }, }, ], ],