Site for the GoGPU ecosystem. Next.js static export, published to https://gogpu.github.io.
gogpu.github.io is an organization site. Unlike project sites (e.g. lkmavi.github.io/dali-coffee), it must publish from the default branch.
Publishing path:
npm run build→out/- Copy into
docs/with.nojekylland_config.ymlthat includes_next(otherwise GitHub Pages/Jekyll drops/_nextCSS and the layout breaks) - GitHub Pages source: Deploy from branch →
main/docs
Workflow .github/workflows/pages.yml rebuilds and updates docs/ on push to main (ignores docs/** to avoid loops).
cp .env.example .env.local
npm install
npm run devLocales use URL prefixes: /en/, /ru/, /de/, /zh/. Root / redirects to /en/.
UI strings live in gettext .po files:
var/langs/en/site.po
var/langs/ru/site.po
var/langs/de/site.po
var/langs/zh/site.po
Lookup is by msgctxt (key), same idea as CS-Cart __("key"):
msgctxt "hero.headline"
msgid "GPU power. Go simplicity."
msgstr "Мощь GPU. Простота Go."In code: const t = await getT(locale); then {t("hero.headline")}.
Non-translatable structure (hrefs, package names, media paths) stays in src/content/site.ts.
NEXT_PUBLIC_BASE_PATH= NEXT_PUBLIC_SITE_URL=https://gogpu.github.io npm run build
rm -rf docs && mkdir docs && cp -a out/. docs/
printf '%s\n' 'include:' ' - _next' > docs/_config.yml
touch docs/.nojekyll
git add docs && git commit -m "Deploy site to docs/" && git pushSee LICENSE.