WeKnora/website-docs/homepage
wizardchen cee697920e fix(website-docs): serve everything but the homepage from /docs/
The site is deployed behind an upstream router that forwards only `/` and
`/docs/`. The homepage export also claimed /_next/, /brand/, /brands/,
/product/, /favicon.ico and Next's root RSC payloads, so behind that router
the page loaded without its scripts, styles or images.

Next's assetPrefix and the homepage's public assets now live under
/docs/_home/ (one `homeAssets` constant shared with the docs header), the
favicon reuses /docs/favicon.ico, and build-site.mjs leaves only index.html,
404.html and docs/ at the root. The homepage logo links are plain anchors
because <Link> navigation fetches RSC payloads from the root. check-site.mjs
now fails the build if a page references anything outside `/` and `/docs/`
or if anything else appears at the site root.
2026-09-24 15:24:16 +08:00
..
app fix(website-docs): serve everything but the homepage from /docs/ 2026-09-24 15:24:16 +08:00
public/docs/_home fix(website-docs): serve everything but the homepage from /docs/ 2026-09-24 15:24:16 +08:00
scripts fix(website-docs): serve everything but the homepage from /docs/ 2026-09-24 15:24:16 +08:00
BRAND-ASSETS.md fix(website-docs): serve everything but the homepage from /docs/ 2026-09-24 15:24:16 +08:00
README.md fix(website-docs): serve everything but the homepage from /docs/ 2026-09-24 15:24:16 +08:00
eslint.config.mjs fix(website-docs): serve everything but the homepage from /docs/ 2026-09-24 15:24:16 +08:00
next-env.d.ts feat(website): add product homepage and unified docs deployment (#3297) 2026-09-16 11:58:37 +08:00
next.config.ts fix(website-docs): serve everything but the homepage from /docs/ 2026-09-24 15:24:16 +08:00
package-lock.json feat(website): add product homepage and unified docs deployment (#3297) 2026-09-16 11:58:37 +08:00
package.json feat(website): add product homepage and unified docs deployment (#3297) 2026-09-16 11:58:37 +08:00
postcss.config.mjs feat(website): add product homepage and unified docs deployment (#3297) 2026-09-16 11:58:37 +08:00
tsconfig.json feat(website): add product homepage and unified docs deployment (#3297) 2026-09-16 11:58:37 +08:00

README.md

WeKnora homepage source

The Next.js homepage is one part of the unified site. Run npm run setup, npm run build, and npm run preview from the parent directory to include both the homepage and the complete /docs/ site. Deployment instructions are in the parent README.

  • app/page.tsx: product content and same-origin documentation links.
  • app/home.module.css: homepage layout.
  • app/interactive.tsx: responsive navigation, theme switch, and on-demand README video.
  • app/theme.ts: VitePress-compatible theme persistence and pre-paint initialization.
  • ../shared/brand.css: shared light/dark design tokens.
  • public/docs/_home/: homepage images. The site serves only / and /docs/, so build output and public assets both live under /docs/_home/ (homeAssets in ../shared/header.ts).

npm run dev can still preview the homepage alone during development. /docs/ requires the combined preview from the parent directory.