feat: 升级vitepress版本1.1.0

This commit is contained in:
wanglihui 2024-04-16 22:48:58 +08:00
parent c01bd6dc25
commit 22c5033f58
6 changed files with 2323 additions and 1193 deletions

View File

@ -1,4 +1,4 @@
import { DefaultTheme } from "vitepress/types/default-theme"; import { DefaultTheme } from "vitepress";
export const navbar: DefaultTheme.NavItem[] = [ export const navbar: DefaultTheme.NavItem[] = [
{ {

View File

@ -4,6 +4,9 @@
:root { :root {
--vp-c-brand: #df5d2a; --vp-c-brand: #df5d2a;
--vp-c-brand-1: #df5d2a;
--vp-c-brand-2: #df5d2a;
--vp-c-brand-3: #df5d2a;
--vp-c-brand-light: #df5d2a; --vp-c-brand-light: #df5d2a;
--vp-c-brand-lighter: #ff9a2e; --vp-c-brand-lighter: #ff9a2e;
--vp-c-brand-lightest: #ff7d00; --vp-c-brand-lightest: #ff7d00;
@ -18,13 +21,13 @@
:root { :root {
--vp-button-brand-border: var(--vp-c-brand-light); --vp-button-brand-border: var(--vp-c-brand-light);
--vp-button-brand-text: var(--vp-c-text-dark-1); --vp-button-brand-text: var(--vp-c-white);
--vp-button-brand-bg: var(--vp-c-brand); --vp-button-brand-bg: var(--vp-c-brand);
--vp-button-brand-hover-border: var(--vp-c-brand-light); --vp-button-brand-hover-border: var(--vp-c-brand-light);
--vp-button-brand-hover-text: var(--vp-c-text-dark-1); --vp-button-brand-hover-text: var(--vp-c-white);
--vp-button-brand-hover-bg: var(--vp-c-brand-light); --vp-button-brand-hover-bg: var(--vp-c-brand-light);
--vp-button-brand-active-border: var(--vp-c-brand-light); --vp-button-brand-active-border: var(--vp-c-brand-light);
--vp-button-brand-active-text: var(--vp-c-text-dark-1); --vp-button-brand-active-text: var(--vp-c-white);
--vp-button-brand-active-bg: var(--vp-button-brand-bg); --vp-button-brand-active-bg: var(--vp-button-brand-bg);
} }

View File

@ -6,27 +6,28 @@
"悟空IM", "悟空IM",
"IM" "IM"
], ],
"type": "module",
"scripts": { "scripts": {
"dev": "vitepress dev", "dev": "vitepress dev",
"build": "vitepress build", "build": "vitepress build",
"serve": "vitepress serve" "serve": "vitepress serve"
}, },
"dependencies": { "dependencies": {
"@iconify-json/carbon": "^1.1.18", "@iconify-json/carbon": "^1.1.31",
"@iconify-json/logos": "^1.1.33", "@iconify-json/logos": "^1.1.42",
"@iconify-json/mdi": "^1.1.52", "@iconify-json/mdi": "^1.1.66",
"@iconify-json/ph": "^1.1.5", "@iconify-json/ph": "^1.1.12",
"@iconify-json/twemoji": "^1.1.11", "@iconify-json/twemoji": "^1.1.15",
"@iconify-json/vscode-icons": "^1.1.25", "@iconify-json/vscode-icons": "^1.1.33",
"vitepress": "1.0.0-beta.3", "vitepress": "1.1.0",
"vue": "^3.3.4" "vue": "^3.4.22"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^18.15.13", "@types/node": "^18.15.13",
"markdown-it-custom-attrs": "^1.0.2", "markdown-it-custom-attrs": "^1.0.2",
"typescript": "^5.0.4", "typescript": "^5.0.4",
"unocss": "^0.53.3", "unocss": "^0.59.3",
"vite": "^4.3.9" "vite": "^5.2.9"
}, },
"pnpm": { "pnpm": {
"peerDependencyRules": { "peerDependencyRules": {
@ -36,8 +37,8 @@
} }
}, },
"engines": { "engines": {
"node": "^14.18.0 || >=16.0.0" "node": "^14.18.0 || >=18.0.0"
}, },
"packageManager": "pnpm@7.9.5", "packageManager": "pnpm@9.0.0",
"license": "ISC" "license": "ISC"
} }

3472
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -14,9 +14,7 @@ docker run -d -p 5001:5001 -p 5100:5100 -p 5172:5172 -p 5200:5200 -p 5210:5210 -
重启服务 重启服务
```shell ```shell
docker stop wukongim docker stop wukongim
``` ```
```shell ```shell
@ -27,4 +25,4 @@ docker start wukongim
## 配置 ## 配置
[部署配置](/guide/deploy-config) [部署配置](/guide/deploy-config)

View File

@ -45,6 +45,10 @@ yarn add wukongimjssdk
``` sh [pnpm] ``` sh [pnpm]
pnpm add wukongimjssdk pnpm add wukongimjssdk
``` ```
``` sh [bun]
bun add wukongimjssdk
```
::: :::