From 0c6ae7d13ee38ddf5a6b87b7d21ff465b4fe0f77 Mon Sep 17 00:00:00 2001 From: Miykaelxxm Date: Wed, 2 Mar 2022 15:37:16 +0800 Subject: [PATCH] rm sitemap xml --- .codechina-ci.yml | 2 -- docs/.vuepress/config.js | 19 +------------------ package.json | 4 ---- 3 files changed, 1 insertion(+), 24 deletions(-) diff --git a/.codechina-ci.yml b/.codechina-ci.yml index 19be0e4..5a6173b 100644 --- a/.codechina-ci.yml +++ b/.codechina-ci.yml @@ -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: diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 08d49af..c6ff940 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -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", diff --git a/package.json b/package.json index 697b42c..ed96550 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,5 @@ }, "devDependencies": { "vuepress-plugin-autometa": "^0.1.13" - }, - "dependencies": { - "moment": "^2.29.1", - "vuepress-plugin-sitemap": "^2.3.1" } } -- GitLab