From 06412954e94971c4d3e973434e85b867fa018701 Mon Sep 17 00:00:00 2001 From: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com> Date: Wed, 26 Aug 2026 04:06:27 +0800 Subject: [PATCH] fix(docs): point gitConfig at the current repository name The docs site declared `gitConfig.repo = 'framework'`, the pre-rename name. `objectstack-ai/framework` and `objectstack-ai/objectstack` return the same repository id (1136691870), so the old name is a rename redirect: every GitHub URL the site emitted resolved, but only after a 301. Three link types are built from this one constant -- the nav bar's GitHub link, the homepage hero's GitHub button, and each doc page's "edit this page" link -- and PR for the JSON-LD work emits `SoftwareSourceCode.codeRepository` from it too, where a stale name is a machine-readable identity claim rather than a link a human clicks through. Measured on a local production build: stale-name occurrences across all prerender artifacts went 3656 -> 0, and all three link types now answer HTTP/2 200 with no `location:` header where they previously answered HTTP/2 301. Co-Authored-By: Claude Opus 5 --- apps/docs/lib/layout.shared.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/docs/lib/layout.shared.tsx b/apps/docs/lib/layout.shared.tsx index 777a661cf7..3510d4ce5b 100644 --- a/apps/docs/lib/layout.shared.tsx +++ b/apps/docs/lib/layout.shared.tsx @@ -1,8 +1,14 @@ import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared'; +// The repository was renamed `framework` → `objectstack`. GitHub keeps a permanent +// rename redirect, so the old name still resolves — but every URL built from it costs a +// 301, and `repo` is also the source of `SoftwareSourceCode.codeRepository` in the +// homepage JSON-LD, where it is a machine-readable identity claim rather than a link. +// Keep this the *current* name: a future repo actually named `framework` would silently +// repoint every link built here. export const gitConfig = { user: 'objectstack-ai', - repo: 'framework', + repo: 'objectstack', branch: 'main', };