From c7137f6f108cbe1a976656924711282c074f4e70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=96=9C=E6=AC=A2=E8=8A=9D=E5=A3=AB=E7=9A=84=E5=A6=B9?= =?UTF-8?q?=E5=A6=B9?= Date: Thu, 22 Dec 2022 13:47:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/config.js | 11 +++++++---- package.json | 1 + pnpm-lock.yaml | 2 ++ scripts/page_deploy.sh | 11 +---------- 4 files changed, 11 insertions(+), 14 deletions(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index db2ba85..4268d8e 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -1,4 +1,6 @@ -module.exports = { +import { defaultTheme } from '@vuepress/theme-default' + +export default { title: "计算机应试全家桶", description: "磨刀不误砍柴工,读完硕士再打工", // base: "/408CSFamily/", @@ -7,7 +9,8 @@ module.exports = { [ "link", { rel: "icon", href: "/408_favicon.ico" } ], - [// 百度统计 + [ + // 百度统计 'script',{},` var _hmt = _hmt || []; (function() { @@ -18,7 +21,7 @@ module.exports = { })();` ] ], - themeConfig: { + theme: defaultTheme({ logo: "/assets/408_logo.png", darkMode: false, // 禁用夜色 navbar: require("./config/navbar/index"), // 注意这个关键字有所改变 @@ -37,7 +40,7 @@ module.exports = { displayAllHeaders: true,// 默认值:false 显示所有页面的标题链接 search: true, searchMaxSuggestions: 10, - }, + }), // plugins: [ // // 全文搜索 参考配置:https://github.com/vuepress/vuepress-next/blob/main/docs/.vuepress/config.ts // ['@vuepress/docsearch', diff --git a/package.json b/package.json index dbfd99d..5747dfe 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "license": "MIT", "devDependencies": { "@vuepress/client": "^2.0.0-beta.59", + "@vuepress/theme-default": "2.0.0-beta.59", "vue": "^3.2.45", "vuepress": "^2.0.0-beta.59" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 831577d..d7144b6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2,11 +2,13 @@ lockfileVersion: 5.3 specifiers: '@vuepress/client': ^2.0.0-beta.59 + '@vuepress/theme-default': 2.0.0-beta.59 vue: ^3.2.45 vuepress: ^2.0.0-beta.59 devDependencies: '@vuepress/client': 2.0.0-beta.59 + '@vuepress/theme-default': 2.0.0-beta.59 vue: 3.2.45 vuepress: 2.0.0-beta.59_cd0e7e888ac665075fdbca7621041a6e diff --git a/scripts/page_deploy.sh b/scripts/page_deploy.sh index ae44f93..2a75447 100644 --- a/scripts/page_deploy.sh +++ b/scripts/page_deploy.sh @@ -1,14 +1,5 @@ #!/usr/bin/env sh -### - # @Description: 静态资源网站部署脚本 - # @Version: Beta1.0 - # @Author: 【B站&公众号】Rong姐姐好可爱 - # @Date: 2021-02-19 22:34:57 - # @LastEditors: 【B站&公众号】Rong姐姐好可爱 - # @LastEditTime: 2022-04-18 23:35:15 -### - commitInfo=${1} set -e @@ -40,7 +31,7 @@ git config --list # git push -f git@github.com:/.github.io.git master # if you are deploying to https://.github.io/ -git push https://github.com/142vip/408CSFamily.git master:pages/github +git push -f https://github.com/mmdapl/408CSFamily.git pages/github cd - \ No newline at end of file