Files
DeepSeek-Reasonix/docs/embed.go
T
SivanCola 0c542ceb7c feat(docs): embed version-matched product documentation
Problem:
Reasonix installations could not reliably search the exact documentation and release notes shipped with their build, and dynamic slash-menu filtering could leave stale virtual row gaps.

Root cause:
Documentation lived only as source files without a compiled retrieval identity or deterministic slash-command path. The shared virtual menu also let TanStack Virtual cache rows by numeric index while React used different keys.

Fix:
Embed docs and reviewed release notes, add the read-only docs tool and /docs command across CLI and Desktop, stamp and verify corpus identity in release builds, enforce documentation-impact declarations, and align virtual-list semantic keys across slash and file menus.

Verification:
- go test ./...
- go test -race ./internal/productdocs ./internal/boot ./internal/control ./internal/cli
- cd desktop && go test ./...
- pnpm --dir desktop/frontend build
- ./scripts/cache-guard.sh
- bash scripts/release-workflows.test.sh
- bash scripts/verify-embedded-docs.sh v0.0.0 e67b2aa824
2026-08-04 13:20:08 +08:00

14 lines
452 B
Go

// Package docs exposes the product documentation bundled with each Reasonix
// build. Runtime consumers should retrieve focused sections instead of adding
// the full corpus to the provider-visible prompt.
package docs
import "embed"
// Content contains the Markdown documentation shipped by this exact build.
// Images and generated site assets are intentionally excluded from the agent
// retrieval corpus.
//
//go:embed *.md
var Content embed.FS