Skip to content

Commit debf7c7

Browse files
committed
docs: update config
1 parent 26de0b1 commit debf7c7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/docs/.vuepress/config.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import { defineUserConfig } from 'vuepress'
2-
import type { DefaultThemeOptions } from 'vuepress'
32
import { permalink } from 'markdown-it-anchor'
4-
import pkg from '../package.json'
3+
import { resolve } from 'node:path'
54

6-
// const md = require('markdown-it')()
7-
const path = require('path')
5+
import type { DefaultThemeOptions } from 'vuepress'
86

97
export default defineUserConfig<DefaultThemeOptions>({
108
base: `/vue/docs/`,
@@ -71,7 +69,7 @@ export default defineUserConfig<DefaultThemeOptions>({
7169
},
7270
],
7371
],
74-
theme: path.resolve(__dirname, './theme-coreui'),
72+
theme: resolve(__dirname, './theme-coreui'),
7573
themeConfig: {
7674
sidebar: [
7775
{

0 commit comments

Comments
 (0)