Skip to content

Commit

Permalink
ga tag added (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
rambleraptor authored Sep 25, 2024
1 parent a768e43 commit 10b3820
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
17 changes: 15 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import * as fs from 'fs';
import tailwind from "@astrojs/tailwind";
import { Graphviz } from "@hpcc-js/wasm";
import rehypeGraphviz from "rehype-graphviz";
import { VitePluginRadar } from 'vite-plugin-radar';


let sidebar = JSON.parse(fs.readFileSync("generated/sidebar.json"));
Expand All @@ -22,7 +23,7 @@ export default defineConfig({
integrations: [starlight({
title: 'AEP',
customCss: [
'./src/tailwind.css',
'./src/tailwind.css',
],
social: {
github: config.urls.repo,
Expand All @@ -32,5 +33,17 @@ export default defineConfig({
}),
tailwind({
applyBaseStyles: false,
})]
})],
vite: {
plugins: [
VitePluginRadar({
analytics: {
id: config.site.ga_tag
},
gtm: {
id: config.site.ga_tag
},
}),
],
}
});
11 changes: 10 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"marked": "^14.1.2",
"rehype-graphviz": "^0.3.0",
"sharp": "^0.32.5",
"tailwindcss": "^3.4.10"
"tailwindcss": "^3.4.10",
"vite-plugin-radar": "^0.9.6"
},
"devDependencies": {
"glob": "^11.0.0",
Expand Down

0 comments on commit 10b3820

Please sign in to comment.