Skip to content

Commit cd9171d

Browse files
chore(docs): update vitepress to v1.0.0-rc.17 and use search option (#143)
Co-authored-by: Michaël De Boey <info@michaeldeboey.be>
1 parent 32b8306 commit cd9171d

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

docs/.vitepress/config.js renamed to docs/.vitepress/config.mjs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
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"
34

4-
module.exports = defineConfig({
5+
const __filename = fileURLToPath(import.meta.url)
6+
const __dirname = path.dirname(__filename)
7+
8+
export default defineConfig({
59
title: "eslint-utils",
610
base: "/eslint-utils/",
711
description: "Utilities for ESLint plugins and custom rules.",
@@ -11,6 +15,12 @@ module.exports = defineConfig({
1115

1216
lastUpdated: true,
1317
themeConfig: {
18+
search: {
19+
provider: "local",
20+
options: {
21+
detailedView: true,
22+
},
23+
},
1424
editLink: {
1525
pattern:
1626
"https://github.com/eslint-community/eslint-utils/edit/main/docs/:path",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"rollup": "^2.79.1",
6262
"rollup-plugin-sourcemaps": "^0.6.3",
6363
"semver": "^7.5.4",
64-
"vitepress": "^1.0.0-beta.7",
64+
"vitepress": "^1.0.0-rc.17",
6565
"warun": "^1.0.0"
6666
},
6767
"peerDependencies": {

0 commit comments

Comments
 (0)