From e51c8ebc3995dce05983b6a1f093ae4bc3d9f53c Mon Sep 17 00:00:00 2001 From: a11 Date: Sat, 16 May 2026 15:28:18 +0800 Subject: [PATCH] fix(website): use desktop package version in JSON-LD softwareVersion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Docusaurus head-tag JSON-LD block hardcoded `softwareVersion: '0.1.49'` while the desktop workspace ships `0.1.86` (per `apps/desktop/package.json`). Google's Rich Results, app-store-style snippets, and any LLM scraping the page for structured data therefore report a 37-version-stale value. The fix imports `apps/desktop/package.json` directly and references `desktopPkg.version` so the literal is always in sync with the real desktop release at build time. The matching `downloadUrl` already points at `…/releases/latest` so the actual download was unaffected; only the structured-data field was drifting. Repro: $ grep softwareVersion apps/website/docusaurus.config.ts # 0.1.49 $ grep '"version"' apps/desktop/package.json # 0.1.86 Acceptance: - `softwareVersion` reads from `desktopPkg.version` (no string literal). - Build still passes (Docusaurus broken-link policy is strict). - pnpm workspace topological order builds desktop before website, so the import resolves at config load time. --- apps/website/docusaurus.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/website/docusaurus.config.ts b/apps/website/docusaurus.config.ts index f5245856..82c7c870 100644 --- a/apps/website/docusaurus.config.ts +++ b/apps/website/docusaurus.config.ts @@ -3,6 +3,7 @@ import type {Config, Plugin, PluginModule} from '@docusaurus/types'; import type * as Preset from '@docusaurus/preset-classic'; import integrationsPagesPlugin from './plugins/integrations-pages'; import {integrations as integrationEntries} from './src/integrations/integrations'; +import desktopPkg from '../desktop/package.json'; const statsProxyPlugin: PluginModule = () => ({ name: 'stats-proxy', @@ -142,7 +143,7 @@ const config: Config = { 'Agent-to-agent commerce support', ], downloadUrl: 'https://github.com/AntSeed/antseed/releases', - softwareVersion: '0.1.49', + softwareVersion: desktopPkg.version, license: 'https://github.com/AntSeed/antseed/blob/main/LICENSE', }), },