update deps

1. 更新依赖
2. 更新项目README文件
3. 修复了大量配置问题,跟进当前版本
4. 新增了一些新组件
This commit is contained in:
狮子耗耗 2024-11-06 19:45:55 +08:00
parent 6381346e77
commit 950d6223d4
7 changed files with 1612 additions and 810 deletions

View File

@ -27,5 +27,5 @@ pnpm run docs:build
5. 更新依赖 5. 更新依赖
```sh ```sh
pnpx vp-update pnpm dlx vp-update
``` ```

View File

@ -5,22 +5,22 @@
"license": "GPL-3.0", "license": "GPL-3.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"docs:build": "vuepress build src", "docs:build": "vuepress-vite build src",
"docs:clean-dev": "vuepress dev src --clean-cache", "docs:clean-dev": "vuepress-vite dev src --clean-cache",
"docs:dev": "vuepress dev src", "docs:dev": "vuepress-vite dev src",
"docs:update-package": "npx vp-update" "docs:update-package": "pnpm dlx vp-update"
}, },
"devDependencies": { "devDependencies": {
"@vuepress/bundler-vite": "2.0.0-rc.15", "@vuepress/bundler-vite": "2.0.0-rc.18",
"katex": "^0.16.11", "sass-embedded": "^1.80.6",
"vue": "^3.5.0", "vue": "^3.5.12",
"vuepress": "2.0.0-rc.15", "vuepress": "2.0.0-rc.18",
"vuepress-theme-hope": "2.0.0-rc.52" "vuepress-theme-hope": "2.0.0-rc.59"
}, },
"volta": { "volta": {
"node": "20.17.0" "node": "20.17.0"
}, },
"dependencies": { "dependencies": {
"vuepress-plugin-md-enhance": "2.0.0-rc.52" "katex": "^0.16.11"
} }
} }

2367
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -1,12 +1,7 @@
import { viteBundler } from '@vuepress/bundler-vite'
import { defineUserConfig } from "vuepress"; import { defineUserConfig } from "vuepress";
import theme from "./theme.js"; import theme from "./theme.js";
export default defineUserConfig({ export default defineUserConfig({
bundler: viteBundler({
viteOptions: {},
vuePluginOptions: {}
}),
base: "/jingji/book/", base: "/jingji/book/",
lang: "zh-CN", lang: "zh-CN",

View File

@ -1,3 +1,2 @@
// you can change config here // you can change config here
$colors: #c0392b, #d35400, #f39c12, #27ae60, #16a085, #2980b9, #8e44ad, #2c3e50, $theme-color: #096dd9;
#7f8c8d !default;

View File

@ -47,16 +47,11 @@ export default hopeTheme({
align: true, align: true,
attrs: true, attrs: true,
chart: false, chart: false,
codetabs: true,
demo: false, demo: false,
echarts: false, echarts: false,
figure: true,
flowchart: false, flowchart: false,
gfm: false, gfm: false,
imgLazyload: true,
imgSize: true,
include: true, include: true,
katex: true,
mark: true, mark: true,
mermaid: false, mermaid: false,
playground: { playground: {
@ -77,12 +72,23 @@ export default hopeTheme({
], ],
sub: true, sub: true,
sup: true, sup: true,
tabs: true,
vPre: true, vPre: true,
vuePlayground: false, vuePlayground: false,
}, },
components: {
components: ["Badge", "BiliBili"],
},
markdownImage: {
figure: true,
lazyload: true,
size: true,
},
markdownMath: {
type: "katex",
},
markdownTab: true,
}, },
pageInfo: [ pageInfo: [
"Author","Date","ReadingTime","Word" "Author", "Date", "ReadingTime", "Word"
] ]
}); });

View File

@ -14,7 +14,10 @@ icon: book
## 最近更新 ## 最近更新
### 2024.11.6 ### 2024.11.6
- 基于 Github Action 实现了自动部署到服务器 - 同步 Vue Theme Hope 到最新版本 <badge text="测试中" type="warning"/>
- 部分组件样式更新
- 新增了部分新组件
- 基于 Github Action 实现了自动部署到服务器 <badge text="新" type="tip"/>
> [附录:历史更新日志](Appendix/changelog.md) > [附录:历史更新日志](Appendix/changelog.md)