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