Skip to content

Commit 3308e51

Browse files
Update config.ts
1 parent 5b8f432 commit 3308e51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.vitepress/config.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import mdItContainer from "markdown-it-container"
22
import type { DefaultTheme } from "vitepress"
33
import { defineConfig } from "vitepress"
44

5-
import { version } from "../package.json"
5+
import { version as vDoc } from "../package.json"
6+
7+
const version = vDoc.slice(0, vDoc.indexOf("-docs") >>> 0)
68

79
export default defineConfig({
810
srcDir: "src",

0 commit comments

Comments
 (0)