a8907d6cc0
Make classic text chapters easier to read on phones with responsive styles, collapsed sidebar groups, and less intrusive install prompts on doc pages. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
433 B
TypeScript
20 lines
433 B
TypeScript
import DefaultTheme from 'vitepress/theme'
|
|
import { h } from 'vue'
|
|
import InstallApp from './InstallApp.vue'
|
|
import './custom.css'
|
|
|
|
if (typeof window !== 'undefined') {
|
|
import('virtual:pwa-register').then(({ registerSW }) => {
|
|
registerSW({ immediate: true })
|
|
})
|
|
}
|
|
|
|
export default {
|
|
extends: DefaultTheme,
|
|
Layout: () => {
|
|
return h(DefaultTheme.Layout, null, {
|
|
'layout-bottom': () => h(InstallApp),
|
|
})
|
|
},
|
|
}
|