Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.
fix(site): show the docs home page at /docs
spacesdrivea3e8d3d6b140
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2af4de7..7d658a3 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,10 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).## [Unreleased]+### Fixed++- The docs home at `/docs` shows the Introduction page again; before, it showed the docs frame with an empty page+---## [1.1.0] - 2026-10-15diff --git a/docs/architecture/site/SITE.md b/docs/architecture/site/SITE.mdindex 5220067..b8cbd65 100644--- a/docs/architecture/site/SITE.md+++ b/docs/architecture/site/SITE.md@@ -85,7 +85,7 @@ site/|---|---|---|| `/` | `MarketingLayout` > `Home` | The home page ships with the first load || `*` | `MarketingLayout` > `NotFound` | Lazy |-| `/docs`, `/docs/*` | `DocsLayout` > `DocPage` | Both lazy; `DocPage` reads the slug from the path |+| `/docs`, `/docs/*` | `DocsLayout` > `DocPage` | Both lazy; `DocPage` reads the slug from the path. `/docs` itself needs the index child, because React Router 7 does not match an empty remainder to the `*` child |Fallback: the build has no top-level `404.html`, so Cloudflare Pages serves `index.html` for any path that is not a file, and the router decides. A docs path with no content file shows a docs 404 inside the docs frame.diff --git a/site/src/router.tsx b/site/src/router.tsxindex 07d93b3..f71a5e6 100644--- a/site/src/router.tsx+++ b/site/src/router.tsx@@ -2,6 +2,8 @@ import { createBrowserRouter } from 'react-router';import { MarketingLayout } from './components/MarketingLayout';import Home from './pages/Home';+const docPage = async () => ({ Component: (await import('./docs/DocPage')).default });+// the home page ships with the first load; everything else loads when visitedexport const router = createBrowserRouter([{@@ -14,6 +16,10 @@ export const router = createBrowserRouter([{path: 'docs',lazy: async () => ({ Component: (await import('./docs/DocsLayout')).default }),- children: [{ path: '*', lazy: async () => ({ Component: (await import('./docs/DocPage')).default }) }],+ // a splat child never matches /docs itself, so the docs home needs its own index route+ children: [+ { index: true, lazy: docPage },+ { path: '*', lazy: docPage },+ ],},]);