Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
f34e09b
fix(docs): add image to Article schema (A1)
dhananjay6561 Aug 7, 2026
88f8864
fix(docs): differentiate page title from h1 (A2)
dhananjay6561 Aug 7, 2026
52568df
fix(docs): add alt text to images missing it (A8)
dhananjay6561 Aug 7, 2026
23c9c94
style(docs): prettier formatting on api-testing-functions/variables
dhananjay6561 Aug 7, 2026
0301cd3
style(docs): prettier (2.8.8) on DocItem
dhananjay6561 Aug 7, 2026
7f927db
style(docs): format DocItem for CI prettier 3.9.6
dhananjay6561 Aug 7, 2026
b4d42f0
feat(docs): specialize doc schema to TechArticle/APIReference (Doc2)
dhananjay6561 Aug 7, 2026
563815c
fix(docs): unique meta descriptions for 6 pages (A7)
dhananjay6561 Aug 7, 2026
98e2a80
style(docs): prettier 3.9.6 on beta-testing.md
dhananjay6561 Aug 7, 2026
ae50868
feat(docs): add structured data to bespoke pages (Doc2)
dhananjay6561 Aug 7, 2026
46a9ac3
feat(docs): emit FAQPage schema for FAQ docs (Doc2/AI4)
dhananjay6561 Aug 7, 2026
03ffef4
feat(docs): consolidate JSON-LD into one @id-linked entity graph (Doc2)
dhananjay6561 Aug 10, 2026
429537c
fix(docs): resolve residual SEO audit items (A8, A9)
dhananjay6561 Aug 10, 2026
4ffad60
docs(A5): expand thin SCM PR-agent page with capabilities + related l…
dhananjay6561 Aug 10, 2026
f7ae0b9
docs(A5): expand Windows/WSL install page with prerequisites + relate…
dhananjay6561 Aug 10, 2026
8f505e6
docs(A4): add "Related Terms" cross-links to all 37 glossary pages
dhananjay6561 Aug 10, 2026
3104c08
docs(A4): add "Related" cross-links to running-keploy docs
dhananjay6561 Aug 10, 2026
a292fef
docs(A4): add "Related" cross-links to quickstart sample apps
dhananjay6561 Aug 10, 2026
96e82dc
docs(A4): add "Related" cross-links to keploy-cloud docs
dhananjay6561 Aug 10, 2026
6e6b4be
docs(A4): add "Related" cross-links to keploy-explained docs
dhananjay6561 Aug 10, 2026
cf53f7f
docs(A4): add "Related" cross-links to ci-cd docs
dhananjay6561 Aug 10, 2026
881f832
docs(A4): add "Related" cross-links to server install + SDK docs
dhananjay6561 Aug 10, 2026
a66ad50
docs(AI4): add HowTo schema to CI/CD integration guides
dhananjay6561 Aug 10, 2026
668e9df
docs(AI4): add HowTo schema to language SDK install guides
dhananjay6561 Aug 10, 2026
78440b9
docs(AI4): add HowTo schema to Linux/Windows install guides
dhananjay6561 Aug 10, 2026
409fbff
ci(vale): accept technical terms flagged on changed lines
dhananjay6561 Aug 10, 2026
2c06a80
feat(docs): add CollectionPage on hubs, LearningResource on quickstarts
dhananjay6561 Aug 15, 2026
be97582
feat(docs): add WebPage/BreadcrumbList/ItemList to application-develo…
dhananjay6561 Aug 15, 2026
1e9f10f
feat(docs): emit community-channels ItemList on the home page
dhananjay6561 Aug 15, 2026
0295310
refactor(docs): centralize breadcrumb JSON-LD in a shared builder
dhananjay6561 Aug 15, 2026
b6848d7
fix(docs): add repo-hosted 1200x630 social card
dhananjay6561 Aug 20, 2026
2075ee0
fix(docs): sync SEO title and social-image metadata in the doc theme
dhananjay6561 Aug 20, 2026
9a49f30
ci(docs): run the schema-graph verifier in the PR build check
dhananjay6561 Aug 20, 2026
8dc2fd4
fix(docs): harden the schema-graph guard
dhananjay6561 Aug 20, 2026
197a8e4
fix(docs): correct leadership route in schema and permalink
dhananjay6561 Aug 20, 2026
25fcc97
fix(docs): keep FAQ answers readable and drop the Related section
dhananjay6561 Aug 20, 2026
1c61728
fix(docs): add trailing slash to the SearchAction target
dhananjay6561 Aug 20, 2026
9b744c4
fix(docs): add alt text to remaining v4 images
dhananjay6561 Aug 20, 2026
385d444
fix(docs): unique meta descriptions for duplicate pages
dhananjay6561 Aug 20, 2026
ea351c1
fix(docs): schema-type accuracy in the doc theme
dhananjay6561 Aug 20, 2026
641a546
fix(docs): unique descriptions for the three Node.js sample apps
dhananjay6561 Aug 20, 2026
3568541
fix(docs): bring two edited descriptions within the 70-160 band
dhananjay6561 Aug 20, 2026
fea6bb4
Merge branch 'main' into feat/ai-citation-health
dhananjay6561 Aug 20, 2026
e579122
style(docs): format remarkFaqSchema per prettier 3.9.6
dhananjay6561 Aug 20, 2026
1533683
fix(docs): normalize en-dashes to em-dash or hyphen for Vale
dhananjay6561 Aug 20, 2026
12a77aa
docs: unlink NDJSON in the public API reference
dhananjay6561 Aug 20, 2026
bba636e
revert(docs): undo en-dash edits in non-Vale / pre-debt files
dhananjay6561 Aug 20, 2026
53097bb
revert(docs): drop en-dash edits in noIndex v2/v3 pages
dhananjay6561 Aug 21, 2026
e41303d
fix(docs): null-guard title before .length in DocItem
dhananjay6561 Aug 21, 2026
0506372
fix(docs): add prose lead-in so FAQ Q3 enters FAQPage schema
dhananjay6561 Aug 21, 2026
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
3 changes: 3 additions & 0 deletions .github/workflows/build_and_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ jobs:

- name: Build Documentation
run: npm run build

- name: Verify structured-data graph
run: npm run verify-schema
19 changes: 16 additions & 3 deletions docs/components/RowOfImages.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
import React from "react";

export default function RowOfImages({imagePath1, imagePath2}) {
export default function RowOfImages({
imagePath1,
imagePath2,
alt1 = "",
alt2 = "",
}) {
return (
<div className={"docs-centered-image-wrapper"}>
<div className="row">
<div className="col col--6">
<img className="docs-centered-image-size-100" src={imagePath1} />
<img
className="docs-centered-image-size-100"
src={imagePath1}
alt={alt1}
/>
</div>
<div className="col col--6">
<img className="docs-centered-image-size-100" src={imagePath2} />
<img
className="docs-centered-image-size-100"
src={imagePath2}
alt={alt2}
/>
</div>
</div>
</div>
Expand Down
133 changes: 21 additions & 112 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import {themes as prismThemes} from "prism-react-renderer";
const path = require("path");
const remarkFaqSchema = require("./src/remark/remarkFaqSchema");
const {siteGraph} = require("./src/schema/siteEntities");
const fs = require("fs");
import {visit} from "unist-util-visit";
const FontPreloadPlugin = require("webpack-font-preload-plugin");
Expand Down Expand Up @@ -60,121 +62,17 @@ module.exports = {
href: "https://keploy.io/",
},
},
// Site-wide entity graph (Organization, WebSite, SoftwareApplication).
// These used to be three sibling <script> blocks, each re-declaring its
// own publisher, which left several disconnected Organization nodes on
// every page. They now share one graph and are addressable by `@id`, so
// per-page schema can point at them instead of copying them.
{
tagName: "script",
attributes: {
type: "application/ld+json",
},
innerHTML: JSON.stringify({
"@context": "https://schema.org",
"@type": "SoftwareApplication",
name: "Keploy",
description:
"Keploy is an open-source, AI-powered testing agent and sandboxing platform that automatically generates test cases, dependency mocks, and production-like sandboxes from real user traffic using eBPF. It helps developers achieve 90% test coverage in minutes with zero code changes. Native support is available on Linux; macOS and Windows require a Linux environment such as Lima, WSL, or Docker.",
applicationCategory: "DeveloperTool",
applicationSubCategory: "Test Automation",
operatingSystem: "Linux",
license: "https://www.apache.org/licenses/LICENSE-2.0",
softwareHelp: "https://keploy.io/docs/",
codeRepository: "https://github.com/keploy/keploy",
downloadUrl: "https://github.com/keploy/keploy/releases",
isAccessibleForFree: true,
url: "https://keploy.io",
featureList: [
"Automatic test case generation from real user traffic",
"Production-like sandbox environments from captured traffic",
"AI-powered dependency virtualization and mock generation",
"Record and replay testing with eBPF kernel capture",
"AI noise detection for flaky test elimination",
"Legacy application testing without code changes",
"Migration regression testing against production baselines",
"Continuous validation in CI/CD pipelines",
"Multi-language support (Go, Java, TypeScript, Python)",
],
keywords: [
"test automation",
"API testing",
"API test generation",
"unit testing",
"integration testing",
"mock generation",
"dependency virtualization",
"eBPF-based testing",
"record and replay",
"production sandbox",
],
programmingLanguage: [
"Go",
"Java",
"TypeScript",
"JavaScript",
"Python",
],
publisher: {
"@type": "Organization",
name: "Keploy",
url: "https://keploy.io",
},
}),
},
{
tagName: "script",
attributes: {
type: "application/ld+json",
},
innerHTML: JSON.stringify({
"@context": "https://schema.org/",
"@type": "Organization",
name: "Keploy",
url: "https://keploy.io/",
logo: "https://keploy.io/images/keploy-logo-full.svg",
foundingDate: "2021-01-01",
knowsAbout: [
"API Testing",
"Test Automation",
"eBPF-based Testing",
"Dependency Virtualization",
"AI-Powered Testing",
],
award: [
"API World 2023 Award: Best in API Infrastructure",
"CNCF Landscape",
"Google for Startups Accelerator",
"Google Summer of Code Mentoring Organization",
],
sameAs: [
"https://github.com/keploy",
"https://twitter.com/Keployio",
"https://www.linkedin.com/company/keploy",
"https://www.youtube.com/@keploy",
"https://discord.gg/keploy",
"https://community.keploy.io",
"https://marketplace.visualstudio.com/items?itemName=Keploy.keployio",
"https://chromewebstore.google.com/detail/keploy-api-test-recorder/ohcclfkaidblnjnggclkiecgkpgldihe",
"https://www.crunchbase.com/organization/hybridk8s",
"https://www.gartner.com/reviews/product/keploy-618993540",
"https://www.g2.com/products/keploy/reviews",
"https://www.capterra.in/software/1070466/Keploy",
"https://aws.amazon.com/marketplace/reviews/reviews-list/prodview-xgwmdk4ivjjv4",
],
}),
},
{
tagName: "script",
attributes: {
type: "application/ld+json",
},
innerHTML: JSON.stringify({
"@context": "https://schema.org/",
"@type": "WebSite",
name: "Keploy Documentation",
url: "https://keploy.io/docs/",
potentialAction: {
"@type": "SearchAction",
target: "https://keploy.io/docs/search?q={search_term_string}",
"query-input": "required name=search_term_string",
},
}),
innerHTML: JSON.stringify(siteGraph),
},
// Meta Pixel Code
{
Expand All @@ -199,7 +97,10 @@ fbq('track', 'PageView');`,
// End Meta Pixel Code
],
title: "Keploy Documentation",
titleDelimiter: "🐰",
// Plain "|" delimiter for React-page <title>s (about, security, …). The old
// "🐰" put an emoji in SERP titles; this keeps them clean and aligns with the
// "|" suffix the docs theme (DocItem) uses.
titleDelimiter: "|",
tagline: "API Test Generator Tool",
url: "https://keploy.io",
baseUrl: "/docs/",
Expand Down Expand Up @@ -263,8 +164,13 @@ fbq('track', 'PageView');`,
},
{name: "twitter:card", content: "summary_large_image"},
{
// 1200x630 card committed to this repo (static/img/), so it can't 404
// from a change in the landing app. The old
// https://keploy.io/images/keploy-hero.png returned the landing app's
// 404 page, breaking every social/OG preview and the Article schema
// image fallback that reused it.
property: "og:image",
content: "https://keploy.io/images/keploy-hero.png",
content: "https://keploy.io/docs/img/keploy-docs-card.png",
},
{property: "og:image:width", content: "1200"},
{property: "og:image:height", content: "630"},
Expand Down Expand Up @@ -484,6 +390,9 @@ fbq('track', 'PageView');`,
},
{},
],
// Emit FAQPage JSON-LD (Question/Answer) for FAQ docs so they are
// eligible for FAQ rich results and AI extraction.
remarkFaqSchema,
],
},
// Will be passed to @docusaurus/plugin-content-blog
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"start": "docusaurus start",
"clean": "rimraf build",
"build": "docusaurus build",
"verify-schema": "node scripts/verify-schema-graph.js build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
Expand Down
165 changes: 165 additions & 0 deletions scripts/verify-schema-graph.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
#!/usr/bin/env node
/**
* Verifies the JSON-LD graph in the built site.
*
* The @id-based consolidation only pays off if every bare {"@id": "..."}
* reference resolves to a node actually defined on the same page -- an
* unresolved reference is worse than the inline duplicate it replaced,
* because consumers get a dangling pointer instead of an entity. This walks
* the built HTML and fails on unparseable JSON-LD, dangling references, or a
* regression to the generic `Article` type. noindex pages (archived versions)
* are skipped. Note it verifies JSON validity and @id resolution, not that
* every emitted `url` actually resolves.
*
* Usage: node scripts/verify-schema-graph.js [buildDir]
*/
const fs = require("fs");
const path = require("path");

const buildDir = process.argv[2] || "build";

// Pages Docusaurus renders with a `noindex` robots meta (archived versions
// carrying `noIndex: true`, etc.) are skipped: they keep their own legacy
// schema copies and are never served to crawlers. Detected from the built HTML
// rather than a hard-coded version list, so it can't drift when a version is
// archived.
const NOINDEX_RE = /<meta[^>]+name="robots"[^>]+content="[^"]*noindex/i;

function findHtml(dir, out = []) {
for (const entry of fs.readdirSync(dir, {withFileTypes: true})) {
const full = path.join(dir, entry.name);
if (entry.isDirectory()) {
findHtml(full, out);
} else if (entry.name === "index.html") {
out.push(full);
}
}
return out;
}

// The build inlines JSON-LD into <script type="application/ld+json">. The
// <Head>/Helmet emitters HTML-escape entities while the raw-text body <script>
// (remark FAQ plugin) does not, so unescape defensively before parsing --
// unescaping already-clean JSON is a no-op here.
const SCRIPT_RE =
/<script[^>]*type="application\/ld\+json"[^>]*>([\s\S]*?)<\/script>/g;

// A page is its own WebPage: the idiomatic `mainEntityOfPage:
// {"@type":"WebPage","@id":<pageUrl>}` points at the document itself, which has
// no separate full node. Seed `defined` with the page's own URL so that
// self-reference resolves, while a typed ref to any *other* undefined @id is
// still caught as dangling. Use og:url, not the canonical <link>: a few docs
// set a cross-site canonical (e.g. to the blog), but og:url is always the
// page's own trailing-slash URL, which is what the schema @id derives from.
const OG_URL_RE = /<meta[^>]+property="og:url"[^>]+content="([^"]+)"/i;

function unescapeHtml(s) {
return s
.replace(/&quot;/g, '"')
.replace(/&#x27;/g, "'")
.replace(/&#39;/g, "'")
.replace(/&lt;/g, "<")
.replace(/&gt;/g, ">")
.replace(/&amp;/g, "&");
}

// Collect every node that declares an @id, and every bare {"@id"} reference.
function walk(node, defined, referenced) {
if (Array.isArray(node)) {
node.forEach((n) => walk(n, defined, referenced));
return;
}
if (!node || typeof node !== "object") {
return;
}
const keys = Object.keys(node).filter((k) => k !== "@context");
if (node["@id"]) {
// A node is a *reference* when it carries nothing beyond @id -- including
// the idiomatic typed form {"@type":"Person","@id":"…"}, which has two keys
// but still only points at an entity defined elsewhere. Only a node with a
// real property (name, url, …) *defines* the entity. Treating typed refs as
// definitions would let a typed pointer at an undefined @id pass silently,
// which is exactly the dangling case this guard exists to catch.
const propsBeyondId = keys.filter((k) => k !== "@id" && k !== "@type");
if (propsBeyondId.length === 0) {
referenced.add(node["@id"]);
} else {
defined.add(node["@id"]);
}
}
for (const key of keys) {
walk(node[key], defined, referenced);
}
}

const files = findHtml(buildDir);

let parseErrors = 0;
let dangling = 0;
let blocks = 0;
let scanned = 0;
const typeCounts = new Map();

for (const file of files) {
const html = fs.readFileSync(file, "utf8");
// Skip noindex pages (archived versions etc.) -- see NOINDEX_RE above.
if (NOINDEX_RE.test(html)) {
continue;
}
scanned += 1;
const defined = new Set();
const referenced = new Set();
const ownUrl = html.match(OG_URL_RE);
if (ownUrl) {
defined.add(ownUrl[1]);
}
let match;
SCRIPT_RE.lastIndex = 0;
while ((match = SCRIPT_RE.exec(html))) {
blocks += 1;
let parsed;
try {
parsed = JSON.parse(unescapeHtml(match[1]));
} catch (err) {
parseErrors += 1;
console.error(`INVALID JSON-LD ${file}\n ${err.message}`);
continue;
}
const graph = parsed["@graph"] || parsed;
walk(graph, defined, referenced);
for (const n of Array.isArray(graph) ? graph : [graph]) {
const t = n && n["@type"];
if (typeof t === "string") {
typeCounts.set(t, (typeCounts.get(t) || 0) + 1);
}
}
}
for (const ref of referenced) {
if (!defined.has(ref)) {
dangling += 1;
console.error(`DANGLING @id ${file}\n ${ref}`);
}
}
}

// The specialization work replaced every generic `Article` with a subtype
// (TechArticle / APIReference / BlogPosting). Pin that: a stray generic
// `Article` reappearing is a regression the shape checks above wouldn't catch.
const genericArticles = typeCounts.get("Article") || 0;

console.log(`\nPages scanned: ${scanned}`);
console.log(`JSON-LD blocks: ${blocks}`);
console.log(`Invalid JSON: ${parseErrors}`);
console.log(`Dangling @id refs: ${dangling}`);
console.log(`Generic Article: ${genericArticles}`);
console.log("\nTop-level @type distribution:");
for (const [type, count] of [...typeCounts].sort((a, b) => b[1] - a[1])) {
console.log(` ${String(count).padStart(5)} ${type}`);
}
if (genericArticles) {
console.error(
`\nFAIL: ${genericArticles} generic "Article" node(s) -- use TechArticle/APIReference/BlogPosting.`
);
}

process.exit(parseErrors || dangling || genericArticles ? 1 : 0);
Loading
Loading