File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
- const { defineConfig } = require ( "vitepress" )
2
- const path = require ( "path" )
1
+ import path from "node:path"
2
+ import { fileURLToPath } from "node:url"
3
+ import { defineConfig } from "vitepress"
3
4
4
- module . exports = defineConfig ( {
5
+ const __filename = fileURLToPath ( import . meta. url )
6
+ const __dirname = path . dirname ( __filename )
7
+
8
+ export default defineConfig ( {
5
9
title : "eslint-utils" ,
6
10
base : "/eslint-utils/" ,
7
11
description : "Utilities for ESLint plugins and custom rules." ,
@@ -11,6 +15,12 @@ module.exports = defineConfig({
11
15
12
16
lastUpdated : true ,
13
17
themeConfig : {
18
+ search : {
19
+ provider : "local" ,
20
+ options : {
21
+ detailedView : true ,
22
+ } ,
23
+ } ,
14
24
editLink : {
15
25
pattern :
16
26
"https://github.com/eslint-community/eslint-utils/edit/main/docs/:path" ,
Original file line number Diff line number Diff line change 61
61
"rollup" : " ^2.79.1" ,
62
62
"rollup-plugin-sourcemaps" : " ^0.6.3" ,
63
63
"semver" : " ^7.5.4" ,
64
- "vitepress" : " ^1.0.0-beta.7 " ,
64
+ "vitepress" : " ^1.0.0-rc.17 " ,
65
65
"warun" : " ^1.0.0"
66
66
},
67
67
"peerDependencies" : {
You can’t perform that action at this time.
0 commit comments