Skip to content

Commit

Permalink
docs: upgrade vitepress + search
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Jan 8, 2024
1 parent fa626ac commit 5a46278
Show file tree
Hide file tree
Showing 4 changed files with 756 additions and 163 deletions.
3 changes: 3 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,8 @@ export default defineConfig({
},
],
},
search: {
provider: 'local'
},
},
})
7 changes: 7 additions & 0 deletions docs/.vitepress/theme/style.postcss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

:root {
--vp-z-index-nav: 10500;
--vp-c-brand-1: #41b88f;
--vp-c-brand-2: #2ab289;
--vp-c-brand-3: #1b9371;
--vp-c-brand-soft: rgba(65, 184, 143, 0.16);
}

.example {
Expand All @@ -23,6 +27,9 @@
@apply p-2;
}

.VPLocalSearchBox {
z-index: 10600 !important;
}

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

Expand Down
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "floating-vue docs",
"private": true,
"main": "index.js",
"type": "module",
"authors": {
"name": "Guillaume Chau",
"email": "guillaume.b.chau@gmail.com"
Expand Down Expand Up @@ -38,7 +39,7 @@
"unplugin-icons": "^0.16.3",
"unplugin-vue-components": "^0.25.1",
"vite": "^4.3.9",
"vitepress": "1.0.0-beta.2",
"vitepress": "^1.0.0-rc.36",
"vue": "^3.3.4"
}
}
Loading

0 comments on commit 5a46278

Please sign in to comment.