Commit graph

3 commits

Author SHA1 Message Date
Nate Sesti
0e7f91ae15
docs: fix GitHub Pages subpath base path for docs site (#12638)
The docs site is served from the /continue/ subpath on GitHub Pages but
next.config.js set no basePath, so /_next CSS/JS, the search index, and
images were requested from the domain root and 404'd (unstyled site).

- Add basePath/assetPrefix of /continue, gated on GITHUB_ACTIONS so local
  dev still serves from root
- Expose NEXT_PUBLIC_BASE_PATH and add a withBasePath helper for raw
  absolute asset paths that Next doesn't prefix automatically
- Prefix the search-index fetch, logo, and MDX doc images
- Guard against double /images/docs/ rewrite in the MDX img component

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-15 12:54:57 -07:00
Nate
ab84469997 style: fix prettier formatting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 14:04:06 -07:00
Nate
606fba91a3 feat: add docs site as static Next.js export
Migrates the docs site from remote-config-server to this repo as a
standalone static Next.js app. Key changes:

- Copy app-docs from remote-config-server to docs-site/
- Configure `output: 'export'` for static HTML generation
- Replace API routes with build-time scripts (search index, image copy)
- Add generateStaticParams() to enumerate all doc slugs at build time
- Convert server-side redirects to client-side redirects
- Point DOCS_DIR to sibling ../docs directory
- Add GitHub Actions workflow for deploying to GitHub Pages
- Add missing Radix UI dependencies (accordion, tabs) to package.json

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 13:52:25 -07:00