diff --git a/.changeset/smart-teams-build.md b/.changeset/smart-teams-build.md new file mode 100644 index 00000000..a845151c --- /dev/null +++ b/.changeset/smart-teams-build.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/website/astro.config.mjs b/website/astro.config.mjs index 0123d4b1..717913f5 100644 --- a/website/astro.config.mjs +++ b/website/astro.config.mjs @@ -13,6 +13,10 @@ export default defineConfig({ "Review code changes and collaborate with coding agents in a desktop-inspired terminal diff viewer.", social: [{ icon: "github", label: "GitHub", href: "https://github.com/modem-dev/hunk" }], head: [ + { + tag: "script", + attrs: { defer: true, src: "/_vercel/insights/script.js" }, + }, { tag: "link", attrs: { rel: "icon", href: "/docs/favicon.svg", type: "image/svg+xml" } }, { tag: "meta", attrs: { property: "og:type", content: "website" } }, { tag: "meta", attrs: { property: "og:site_name", content: "Hunk documentation" } }, diff --git a/website/tests/docs-smoke.spec.ts b/website/tests/docs-smoke.spec.ts index 61a204d4..9ef45f9b 100644 --- a/website/tests/docs-smoke.spec.ts +++ b/website/tests/docs-smoke.spec.ts @@ -35,6 +35,11 @@ test("documentation stays in the canonical light theme", async ({ page }) => { await expect(page.locator("html")).toHaveAttribute("data-theme", "light"); }); +test("documentation includes Vercel Analytics", async ({ page }) => { + await page.goto("/docs/"); + await expect(page.locator('script[src="/_vercel/insights/script.js"]')).toHaveCount(1); +}); + test("left sidebar credits Modem at its bottom", async ({ page }) => { await page.setViewportSize({ width: 1440, height: 900 }); await page.goto("/docs/start/quick-start/");