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

rm sitemap xml

上级 8a822910
......@@ -9,8 +9,6 @@ pages:
- yarn install # npm install
- yarn add -D vuepress # npm install -D vuepress
- yarn docs:build # npm run docs:build
- mkdir public
- cp robots.txt public
- mv docs/.vuepress/dist public
artifacts:
paths:
......
......@@ -74,24 +74,7 @@ module.exports = {
}
},
plugins: [
['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()
}
}
]
['autometa', autometa_options]
],
themeConfig: {
repo: "https://gitcode.net/dev-cloud/spring",
......
......@@ -5,9 +5,5 @@
},
"devDependencies": {
"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.
先完成此消息的编辑!
想要评论请 注册