Skip to content

Commit 5a46278

Browse files
committed
docs: upgrade vitepress + search
1 parent fa626ac commit 5a46278

File tree

4 files changed

+756
-163
lines changed

4 files changed

+756
-163
lines changed

docs/.vitepress/config.ts

+3
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,8 @@ export default defineConfig({
113113
},
114114
],
115115
},
116+
search: {
117+
provider: 'local'
118+
},
116119
},
117120
})

docs/.vitepress/theme/style.postcss

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
:root {
66
--vp-z-index-nav: 10500;
7+
--vp-c-brand-1: #41b88f;
8+
--vp-c-brand-2: #2ab289;
9+
--vp-c-brand-3: #1b9371;
10+
--vp-c-brand-soft: rgba(65, 184, 143, 0.16);
711
}
812

913
.example {
@@ -23,6 +27,9 @@
2327
@apply p-2;
2428
}
2529

30+
.VPLocalSearchBox {
31+
z-index: 10600 !important;
32+
}
2633

2734
/* Fix base styles for Tailwind (vitepress) */
2835

docs/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "floating-vue docs",
55
"private": true,
66
"main": "index.js",
7+
"type": "module",
78
"authors": {
89
"name": "Guillaume Chau",
910
"email": "[email protected]"
@@ -38,7 +39,7 @@
3839
"unplugin-icons": "^0.16.3",
3940
"unplugin-vue-components": "^0.25.1",
4041
"vite": "^4.3.9",
41-
"vitepress": "1.0.0-beta.2",
42+
"vitepress": "^1.0.0-rc.36",
4243
"vue": "^3.3.4"
4344
}
4445
}

0 commit comments

Comments
 (0)