Skip to content

Commit

Permalink
Fix docs, move SA to head (#4050)
Browse files Browse the repository at this point in the history
move SA to head
  • Loading branch information
jkrumbiegel committed Jul 23, 2024
1 parent 77f2cfd commit 0ca84b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 3 additions & 1 deletion docs/src/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export default defineConfig({
head: [
['link', { rel: 'icon', href: 'REPLACE_ME_DOCUMENTER_VITEPRESS_FAVICON' }],
['script', {src: '/versions.js'}],
['script', {src: `${baseTemp.base}siteinfo.js`}]
['script', {src: `${baseTemp.base}siteinfo.js`}],
['script', {async:'', defer:'', src:'https://api.makie.org/latest.js'}],
['noscript', {}, '<img alt="" referrerpolicy="no-referrer-when-downgrade" src="https://api.makie.org/noscript.gif"/>'],
],
ignoreDeadLinks: true,

Expand Down
3 changes: 0 additions & 3 deletions docs/src/.vitepress/theme/SimpleAnalytics.vue

This file was deleted.

2 changes: 0 additions & 2 deletions docs/src/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { h, watch } from "vue";
import type { Theme } from "vitepress";
import DefaultTheme from "vitepress/theme";
import SimpleAnalytics from "./SimpleAnalytics.vue"
import VersionPicker from "./VersionPicker.vue"

import { enhanceAppWithTabs } from "vitepress-plugin-tabs/client";
Expand All @@ -13,7 +12,6 @@ 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 0ca84b8

Please sign in to comment.