index.ts 504 B

12345678910111213141516171819202122232425262728
  1. import 'uno.css'
  2. // .vitepress/theme/index.ts
  3. import DefaultTheme from 'vitepress/theme'
  4. import './config.css'
  5. import TresLayout from './TresLayout.vue'
  6. /* const plausible = createPlausible({
  7. init: {
  8. trackLocalhost: false,
  9. },
  10. settings: {
  11. enableAutoOutboundTracking: true,
  12. enableAutoPageviews: true,
  13. },
  14. partytown: false,
  15. }) */
  16. export default {
  17. ...DefaultTheme,
  18. enhanceApp(ctx) {
  19. DefaultTheme.enhanceApp(ctx)
  20. /* ctx.app.use(plausible) */
  21. },
  22. Layout: TresLayout,
  23. }