Skip to content

fix(website): use desktop package version in JSON-LD softwareVersion#546

Merged
kotevcode merged 1 commit into
AntSeed:mainfrom
Augustas11:fix/website-jsonld-software-version
May 18, 2026
Merged

fix(website): use desktop package version in JSON-LD softwareVersion#546
kotevcode merged 1 commit into
AntSeed:mainfrom
Augustas11:fix/website-jsonld-software-version

Conversation

@Augustas11
Copy link
Copy Markdown
Contributor

Summary

  • The Docusaurus head-tag JSON-LD block hardcoded softwareVersion: '0.1.49' while the desktop workspace currently ships 0.1.86 (per apps/desktop/package.json).
  • Google Rich Results, app-store-style snippets, and any LLM scraping the site 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 stays in sync with each desktop release.
  • The matching downloadUrl already points at …/releases/latest, so the actual download was unaffected — only the structured-data field was drifting.

Reproduction

$ grep softwareVersion apps/website/docusaurus.config.ts   # was 0.1.49
$ grep '"version"' apps/desktop/package.json               # 0.1.86

Testing

  • pnpm install + a website build was not run in this clean worktree; native dependencies in the wider monorepo make a from-scratch install heavy.
  • The change is 2 lines (one new import, one literal → reference rewrite). The pnpm workspace builds desktop before website per topological order, so the import resolves at config load time.
  • Visual / structured-data verification recommended on a maintainer worktree: apps/website build should succeed (strict broken-link policy still passes) and the rendered JSON-LD should match apps/desktop/package.json:version.

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.
@kotevcode kotevcode merged commit 11838e0 into AntSeed:main May 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants