Skip to content

Conversation

@amaan-bhati
Copy link
Member

What has changed?

  • Adds JSON‑LD injection to the docs homepage so search engines can parse breadcrumb hierarchy and page metadata.

  • Emits BreadcrumbList (Home → Docs) and Article schema on the homepage.

  • Adds @docusaurus/Head to inject JSON‑LD on the docs landing page.

  • BreadcrumbList schema uses siteConfig.url and siteConfig.baseUrl to generate Home and Docs items.

  • Article schema uses siteConfig.title and siteConfig.tagline, plus the Keploy publisher entity.

This PR Resolves : keploy/keploy#3433

Type of change

  • New feature (non-breaking change which adds functionality).

How Has This Been Tested?

Please run npm run build and npm run serve to check if the changes are working as expected. Please include screenshots of the output of both the commands. Add screenshots/gif of the changes if possible.

  • Ran npm run build nothing breaks:

Screenshot 2025-12-31 at 3 01 04 AM

How to test

  • Run: npm run start
  • Open: http://localhost:3000/docs/
  • In DevTools → Elements, expand <head> and search for:
    • application/ld+json:

Screenshot 2025-12-31 at 2 58 16 AM
  • BreadcrumbList:

Screenshot 2025-12-31 at 2 58 41 AM
  • Article

Screenshot 2025-12-31 at 2 58 59 AM
- Verify the BreadcrumbList has: - Home → Docs - Verify the Article schema includes: - headline from the site title:
Screenshot 2025-12-31 at 2 59 20 AM
- description from the site tagline:
Screenshot 2025-12-31 at 2 59 52 AM

Checklist:

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.

@nehagup nehagup merged commit 86f340e into keploy:main Dec 31, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[docs]: Add JSON‑LD schema to docs homepage (BreadcrumbList + Article)

2 participants