Skip to content

Commit

Permalink
add simpleanalytics back in (#3920)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumbiegel authored Jun 1, 2024
1 parent e51c44a commit 37f5868
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/src/.vitepress/theme/SimpleAnalytics.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template>
<div v-html="`<script async=&quot;&quot; defer=&quot;&quot; src=&quot;https://api.makie.org/latest.js&quot;></script><noscript><img alt=&quot;&quot; referrerpolicy=&quot;no-referrer-when-downgrade&quot; src=&quot;https://api.makie.org/noscript.gif&quot;/></noscript>`"></div>
</template>
2 changes: 2 additions & 0 deletions docs/src/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { h, watch } from "vue";
import type { Theme } from "vitepress";
import DefaultTheme from "vitepress/theme";
import SimpleAnalytics from "./SimpleAnalytics.vue"

import { enhanceAppWithTabs } from "vitepress-plugin-tabs/client";
import "./style.css";
Expand All @@ -11,6 +12,7 @@ export default {
Layout() {
return h(DefaultTheme.Layout, null, {
// https://vitepress.dev/guide/extending-default-theme#layout-slots
'layout-bottom': () => h(SimpleAnalytics)
});
},
async enhanceApp({ app, router, siteData }) {
Expand Down

0 comments on commit 37f5868

Please sign in to comment.