diff --git a/.gitignore b/.gitignore index b9893bfe5..370cf4855 100644 --- a/.gitignore +++ b/.gitignore @@ -1,18 +1,19 @@ -## IntelliJ IDEA ## -.idea -*.iws -*.iml -*.ipr - -.DS_Store +# dependencies node_modules -build -/dist +# production +build +node_modules +dist -# local env files +# misc +.DS_Store .env.local -.env.*.local +.env.development.local +.env.test.local +.env.production.local +.idea +.iml # Log files npm-debug.log* @@ -21,11 +22,5 @@ yarn-error.log* pnpm-debug.log* # Editor directories and files -.idea -.vscode -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? .docusaurus +/**/*/.cache-loader diff --git a/docusaurus.config.js b/docusaurus.config.js index 02104e68c..c7de3d367 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -150,6 +150,12 @@ const config = { trackingID: "G-NP3B57ZGEF", anonymizeIP: true, }, + sitemap: { + changefreq: 'weekly', // 页面更新频率 + priority: 0.5, // 该 url 相对网站其他 url 的优先级 value 0.0~1.0 + ignorePatterns: ['/tags/**'], // 匹配成功的路径不会出现在站点地图中。 注意你可能要在这里加上 base URL。 + filename: 'sitemap.xml', // 创建的站点地图的路径,相对于输出目录。 + }, }), ], ], diff --git a/package-lock.json b/package-lock.json index 5c867878f..b147ff8fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "@docusaurus/core": "2.4.1", "@docusaurus/plugin-content-docs": "2.4.1", + "@docusaurus/plugin-sitemap": "^2.4.1", "@docusaurus/preset-classic": "2.4.1", "@easyops-cn/docusaurus-search-local": "^0.35.0", "@mdx-js/react": "^1.6.22", diff --git a/package.json b/package.json index 1349ffac9..fce2016ff 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "dependencies": { "@docusaurus/core": "2.4.1", "@docusaurus/plugin-content-docs": "2.4.1", + "@docusaurus/plugin-sitemap": "^2.4.1", "@docusaurus/preset-classic": "2.4.1", "@easyops-cn/docusaurus-search-local": "^0.35.0", "@mdx-js/react": "^1.6.22", @@ -49,4 +50,4 @@ "node": ">=16.14" }, "repository": "https://github.com/qq635840580/spring-cloud-alibaba-group.github.io.git" -} \ No newline at end of file +} diff --git a/sitemap-cn.xml b/sitemap-cn.xml deleted file mode 100644 index ef8672d39..000000000 --- a/sitemap-cn.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - diff --git a/sitemap.xml b/sitemap.xml deleted file mode 100644 index 385b4c8e8..000000000 --- a/sitemap.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file