Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 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
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
121 changes: 11 additions & 110 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 Down Expand Up @@ -484,6 +382,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
120 changes: 120 additions & 0 deletions scripts/verify-schema-graph.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
#!/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 or dangling references.
*
* Usage: node scripts/verify-schema-graph.js [buildDir]
*/
const fs = require("fs");
const path = require("path");

const buildDir = process.argv[2] || "build";
const SKIP_VERSIONS = ["/1.0.0/", "/2.0.0/"];

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">. Entities
// are HTML-escaped by React, so unescape before parsing.
const SCRIPT_RE =
/<script[^>]*type="application\/ld\+json"[^>]*>([\s\S]*?)<\/script>/g;

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 carrying only "@id" is a reference; anything else defines it.
if (keys.length === 1) {
Comment thread
dhananjay6561 marked this conversation as resolved.
referenced.add(node["@id"]);
} else {
defined.add(node["@id"]);
}
}
for (const key of keys) {
walk(node[key], defined, referenced);
}
}

const files = findHtml(buildDir).filter(
(f) => !SKIP_VERSIONS.some((v) => f.includes(v))
);

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

for (const file of files) {
const html = fs.readFileSync(file, "utf8");
const defined = new Set();
const referenced = new Set();
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}`);
}
}
}

console.log(`\nPages scanned: ${files.length}`);
console.log(`JSON-LD blocks: ${blocks}`);
console.log(`Invalid JSON: ${parseErrors}`);
console.log(`Dangling @id refs: ${dangling}`);
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}`);
}

process.exit(parseErrors || dangling ? 1 : 0);
42 changes: 36 additions & 6 deletions src/components/Community.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import React from "react";
import { FaYoutube, FaGithub, FaSlack, FaRss, FaArrowRight } from "react-icons/fa";
import { FaXTwitter } from "react-icons/fa6";
import { HiOutlineNewspaper } from "react-icons/hi2";
import Head from "@docusaurus/Head";
import {
FaYoutube,
FaGithub,
FaSlack,
FaRss,
FaArrowRight,
} from "react-icons/fa";
import {FaXTwitter} from "react-icons/fa6";
import {HiOutlineNewspaper} from "react-icons/hi2";

const communityLinks = [
{
Expand Down Expand Up @@ -54,9 +61,30 @@ const communityLinks = [
},
];

// ItemList of the community channels so search engines and AI can enumerate
// the official places to reach Keploy. Built from the same `communityLinks`
// data the cards render, so the structured data never drifts from the UI.
const communitySchema = {
"@context": "https://schema.org",
"@type": "ItemList",
name: "Keploy community channels",
itemListElement: communityLinks.map((link, i) => ({
"@type": "ListItem",
position: i + 1,
name: link.title,
description: link.desc,
url: link.href,
})),
};

export const Community = () => {
return (
<section className="mb-16" id="community">
<Head>
<script type="application/ld+json">
{JSON.stringify(communitySchema)}
</script>
</Head>
{/* Section Header */}
<div className="mb-8 text-center">
<span className="mb-2 inline-flex items-center gap-1.5 rounded-full bg-purple-100 px-3 py-1 text-sm font-medium text-purple-700 dark:bg-purple-900/30 dark:text-purple-400">
Expand All @@ -66,13 +94,14 @@ export const Community = () => {
Connect with the Keploy community
</h2>
<p className="mx-auto max-w-2xl text-base text-gray-600 dark:text-gray-400">
Get help, learn best practices, and stay updated—through the channels you already use.
Get help, learn best practices, and stay updated—through the channels
you already use.
</p>
</div>

{/* Community Links Grid */}
<div className="mb-8 grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
{communityLinks.map(({ title, desc, href, Icon, iconColor, bgColor }) => (
{communityLinks.map(({title, desc, href, Icon, iconColor, bgColor}) => (
<a
key={title}
href={href}
Expand Down Expand Up @@ -108,7 +137,8 @@ export const Community = () => {
Want to see a demo of Keploy Enterprise?
</h3>
<p className="text-sm text-gray-600 dark:text-gray-400">
Share your use-case, workflow—and we'll help with any resources you need.
Share your use-case, workflow—and we'll help with any resources
you need.
</p>
</div>
<a
Expand Down
Loading
Loading