Skip to content

Commit

Permalink
update sitemap.xml file (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuluo-yx authored Sep 17, 2023
1 parent 91ef68e commit 0636aaf
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 53 deletions.
31 changes: 13 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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*
Expand All @@ -21,11 +22,5 @@ yarn-error.log*
pnpm-debug.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.docusaurus
/**/*/.cache-loader
6 changes: 6 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', // 创建的站点地图的路径,相对于输出目录。
},
}),
],
],
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -49,4 +50,4 @@
"node": ">=16.14"
},
"repository": "https://github.com/qq635840580/spring-cloud-alibaba-group.github.io.git"
}
}
17 changes: 0 additions & 17 deletions sitemap-cn.xml

This file was deleted.

17 changes: 0 additions & 17 deletions sitemap.xml

This file was deleted.

0 comments on commit 0636aaf

Please sign in to comment.