index.ts 957 B

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