diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index 035a895d..23030cd6 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -81,16 +81,16 @@ export default { setup() { const route = useRoute() const initZoom = () => { - mediumZoom('.main img', { background: 'var(--vp-c-bg)' }) // Should there be a new? + mediumZoom('.main img', { background: 'var(--vp-c-bg)' }) // Should there be a new? } onMounted(() => { - initZoom() + initZoom() }) watch( - () => route.path, - () => nextTick(() => initZoom()), + () => route.path, + () => nextTick(() => initZoom()) ) - }, + }, enhanceApp(ctx) { // custom component tag/slot diff --git a/docs/components.d.ts b/docs/components.d.ts index f946c4b7..fe0f9697 100644 --- a/docs/components.d.ts +++ b/docs/components.d.ts @@ -11,7 +11,6 @@ declare module '@vue/runtime-core' { export interface GlobalComponents { AsideSponsors: typeof import('./.vitepress/theme/components/AsideSponsors.vue')['default'] CardLink: typeof import('./.vitepress/theme/components/CardLink.vue')['default'] - CodeTitle: typeof import('./.vitepress/theme/components/layout/CodeTitle.vue')['default'] Comment: typeof import('./.vitepress/theme/components/layout/Comment.vue')['default'] Copyright: typeof import('./.vitepress/theme/components/Copyright.vue')['default'] Footer: typeof import('./.vitepress/theme/components/layout/Footer.vue')['default'] diff --git a/vercel.json b/vercel.json index e174eccc..1c71a719 100644 --- a/vercel.json +++ b/vercel.json @@ -1,5 +1,5 @@ { - "installCommand": "pnpm add -g pnpm@8.3.1 && pnpm install --force", + "installCommand": "pnpm i", "buildCommand": "pnpm docs:build", "devCommand": "pnpm docs:dev", "cleanUrls": true,