提交 0c6ae7d1 编写于 作者: Miykael_xxm's avatar Miykael_xxm 🚴

rm sitemap xml

上级 8a822910
...@@ -9,8 +9,6 @@ pages: ...@@ -9,8 +9,6 @@ pages:
- yarn install # npm install - yarn install # npm install
- yarn add -D vuepress # npm install -D vuepress - yarn add -D vuepress # npm install -D vuepress
- yarn docs:build # npm run docs:build - yarn docs:build # npm run docs:build
- mkdir public
- cp robots.txt public
- mv docs/.vuepress/dist public - mv docs/.vuepress/dist public
artifacts: artifacts:
paths: paths:
......
...@@ -74,24 +74,7 @@ module.exports = { ...@@ -74,24 +74,7 @@ module.exports = {
} }
}, },
plugins: [ plugins: [
['autometa', autometa_options], ['autometa', autometa_options]
['sitemap', {
hostname: "https://dev-cloud.gitcode.host/spring/",
// 排除无实际内容的页面
exclude: ["/404.html"]
}],
[
'@vuepress/last-updated',
{
transformer: (timestamp, lang) => {
//return (new Date(timestamp)).toUTCString() 或者用下面这段
// 不要忘了安装 moment
const moment = require('moment')
moment.locale(lang)
return moment(timestamp).toString()
}
}
]
], ],
themeConfig: { themeConfig: {
repo: "https://gitcode.net/dev-cloud/spring", repo: "https://gitcode.net/dev-cloud/spring",
......
...@@ -5,9 +5,5 @@ ...@@ -5,9 +5,5 @@
}, },
"devDependencies": { "devDependencies": {
"vuepress-plugin-autometa": "^0.1.13" "vuepress-plugin-autometa": "^0.1.13"
},
"dependencies": {
"moment": "^2.29.1",
"vuepress-plugin-sitemap": "^2.3.1"
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册