mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-11-05 22:59:00 +08:00
feat: 新增默认主题样式
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
2
pnpm-lock.yaml
generated
2
pnpm-lock.yaml
generated
@@ -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
|
||||
|
||||
|
||||
@@ -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:<USERNAME>/<USERNAME>.github.io.git master
|
||||
|
||||
# if you are deploying to https://<USERNAME>.github.io/<REPO>
|
||||
git push https://github.com/142vip/408CSFamily.git master:pages/github
|
||||
git push -f https://github.com/mmdapl/408CSFamily.git pages/github
|
||||
|
||||
|
||||
cd -
|
||||
Reference in New Issue
Block a user