Skip to content

feat(seo): default docs Article author + datePublished (E-E-A-T/freshness)#888

Open
nehagup wants to merge 1 commit into
mainfrom
geo/docs-article-author-date
Open

feat(seo): default docs Article author + datePublished (E-E-A-T/freshness)#888
nehagup wants to merge 1 commit into
mainfrom
geo/docs-article-author-date

Conversation

@nehagup

@nehagup nehagup commented Jul 11, 2026

Copy link
Copy Markdown
Member

What & why

A live-site JSON-LD audit found docs Article schema dropping author and datePublished on pages whose front matter omits them (e.g. /docs/server/install/, /docs/running-keploy/api-test-generator/). Missing author + publish date weaken E-E-A-T and freshness signals that AI answer engines use.

Change (src/theme/DocItem/index.js, additive fallbacks)

  • author: default to the Keploy Organization when a doc has no front-matter author (docs are authored by Keploy) — schema always carries an author instead of omitting the field.
  • datePublished: fall back to the doc's last-modified time when front matter omits date, so every doc carries a publication/freshness signal.

Pages that already set front-matter author/date are unaffected.

Scope / safety

  • DocItem/index.js is not touched by the open seo/audit-fixes PR — no conflict.
  • Prettier clean (prettier --check passes); deploy-preview CI will validate the build.

Note: separately discovered that headTags in docusaurus.config.js is nested under themeConfig (Docusaurus ignores it), so the site-wide Organization/SoftwareApplication schema isn't rendering — tracked separately.

🤖 Generated with Claude Code

…eshness

Live-site audit found docs Article schema dropping `author` and
`datePublished` on pages whose front matter omits them (e.g.
/docs/server/install/, /docs/running-keploy/api-test-generator/), weakening
E-E-A-T and freshness signals for AI answer engines.

- author: default to the Keploy Organization when no front-matter author,
  so Article schema always carries an author instead of omitting it.
- datePublished: fall back to the doc's last-modified time when front matter
  omits `date`, so every doc carries a publication/freshness signal.

Both are additive fallbacks in the swizzled DocItem; pages that already set
front-matter author/date are unaffected. Not touched by the open
seo/audit-fixes PR.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Neha Gupta <gneha21@yahoo.in>
Copilot AI review requested due to automatic review settings July 11, 2026 14:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR strengthens the JSON-LD Article (and related) schema emitted by the docs theme so that pages without front matter author/date still include an author and datePublished, improving E‑E‑A‑T and freshness signals for SEO.

Changes:

  • Add datePublished fallback to lastUpdatedAt/lastUpdatedAt-derived modifiedTime when front matter omits a publish date.
  • Default author to a Keploy Organization object when no front matter author(s) are provided.
  • Minor Prettier-only formatting changes (regex formatting and one footer link tag).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants