mirror of
https://github.com/Hmbown/DeepSeek-TUI.git
synced 2026-09-03 06:50:13 +08:00
The public FAQ now emits FAQPage JSON-LD from the same 40 Q&A pairs the page renders. The locale layout carries a stable Organization/WebSite graph so SoftwareApplication can reference it. /llms.txt is generated from the docs registry; robots allows it; middleware does not locale-prefix it. Docs pages get a Home → Docs → topic trail and a matching BreadcrumbList. Cloudflare Images is not enabled. Verified: 92 vitest files in the touched web surface passed in the implementing session.
21 lines
862 B
TypeScript
21 lines
862 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { ORGANIZATION_ID } from "./site-schema";
|
|
import { buildSoftwareApplicationJsonLd } from "./software-application-schema";
|
|
|
|
describe("SoftwareApplication structured data", () => {
|
|
it("uses the published version advertised by the release-backed install URL", () => {
|
|
const schema = buildSoftwareApplicationJsonLd({ version: "0.9.3" });
|
|
|
|
expect(schema.downloadUrl).toBe("https://codewhale.net/en/install");
|
|
expect(schema.softwareVersion).toBe("0.9.3");
|
|
expect(schema.author).toEqual({ "@id": ORGANIZATION_ID });
|
|
});
|
|
|
|
it("omits softwareVersion when no published release receipt is available", () => {
|
|
const schema = buildSoftwareApplicationJsonLd(null);
|
|
|
|
expect(schema).not.toHaveProperty("softwareVersion");
|
|
expect(schema.author).toEqual({ "@id": ORGANIZATION_ID });
|
|
});
|
|
});
|