Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions scripts/validate-homepage-json-ld.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,25 @@ assert.equal(websites.length, 1, 'Expected exactly one WebSite JSON-LD node');

assert.equal(organizations[0]['@id'], ORGANIZATION_ID);
assert.equal(organizations[0].url, WARP_ORIGIN);
assert.equal(
organizations[0].description,
'Warp builds Warp Factories: open infrastructure for cloud software factories, defined in code.',
);
assert.deepEqual(organizations[0].sameAs, [
'https://x.com/warpdotdev',
'https://github.com/warpdotdev',
'https://www.youtube.com/@warpdotdev',
'https://www.linkedin.com/company/warpdotdev',
]);
assert.equal(websites[0]['@id'], WEBSITE_ID);
assert.equal(websites[0].url, DOCS_ORIGIN);
assert.equal(
websites[0].description,
'Set up and run Warp Factories, open infrastructure for cloud software factories, plus the cloud agents, Warp agents, and Warp terminal behind them.',
);
for (const payload of [organizations[0], websites[0]]) {
assert.doesNotMatch(payload.description, /agentic development environment/i);
}
assert.deepEqual(websites[0].publisher, { '@id': ORGANIZATION_ID });

console.log('Homepage JSON-LD validation passed.');
3 changes: 2 additions & 1 deletion src/components/CustomHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const organizationJsonLd = JSON.stringify({
'@type': 'Organization',
'@id': organizationId,
name: 'Warp',
description: 'Warp builds Warp Factories: open infrastructure for cloud software factories, defined in code.',
url: WARP_ORIGIN,
logo: {
'@type': 'ImageObject',
Expand All @@ -39,7 +40,6 @@ const organizationJsonLd = JSON.stringify({
'https://x.com/warpdotdev',
'https://github.com/warpdotdev',
'https://www.youtube.com/@warpdotdev',
'https://go.warp.dev/join-preview',
'https://www.linkedin.com/company/warpdotdev',
],
}).replace(/</g, '\\u003c');
Expand All @@ -48,6 +48,7 @@ const websiteJsonLd = JSON.stringify({
'@type': 'WebSite',
'@id': `${DOCS_ORIGIN}/#website`,
name: 'Warp Docs',
description: 'Set up and run Warp Factories, open infrastructure for cloud software factories, plus the cloud agents, Warp agents, and Warp terminal behind them.',
url: DOCS_ORIGIN,
publisher: { '@id': organizationId },
}).replace(/</g, '\\u003c');
Expand Down
Loading