Skip to content

Commit

Permalink
docs: uset nightly build of vitepress to correctly import search bar …
Browse files Browse the repository at this point in the history
  • Loading branch information
dwgray authored Jan 17, 2025
1 parent 33107ea commit f14db7c
Show file tree
Hide file tree
Showing 4 changed files with 250 additions and 123 deletions.
2 changes: 1 addition & 1 deletion apps/docs/.vitepress/theme/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ import SunFill from '~icons/bi/sun-fill'
import ChevronRight from '~icons/bi/chevron-right'
import CircleHalf from '~icons/bi/circle-half'
import {useData, useRoute, withBase} from 'vitepress'
import {VPNavBarSearch} from 'vitepress/theme'
import {appInfoKey} from './keys'
import {useMediaQuery} from '@vueuse/core'
import VPNavBarSearch from 'vitepress/dist/client/theme-default/components/VPNavBarSearch.vue'

// https://vitepress.dev/reference/runtime-api#usedata
const {page} = useData()
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// https://vitepress.dev/guide/custom-theme
import Layout from './Layout.vue'
import type {Theme} from 'vitepress'
import type {EnhanceAppContext, Theme} from 'vitepress'
import DefaultTheme from 'vitepress/theme-without-fonts'
import {appInfoKey} from './keys'

Expand All @@ -11,7 +11,7 @@ import {createBootstrap} from 'bootstrap-vue-next'
export default {
extends: DefaultTheme,
Layout,
enhanceApp(ctx) {
enhanceApp(ctx: EnhanceAppContext) {
const githubMainBranch = 'main'
const base = `tree/${githubMainBranch}`
const githubUrl = 'https://github.com/bootstrap-vue-next/bootstrap-vue-next'
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"typescript": "^5.6.3",
"unplugin-icons": "^0.20.1",
"unplugin-vue-components": "^0.27.4",
"vitepress": "1.5.0",
"vitepress": "https://pkg.pr.new/vitepress@23522ab",
"vue": "^3.5.13"
},
"lint-staged": {
Expand Down
Loading

0 comments on commit f14db7c

Please sign in to comment.