Skip to content

Add structured data and mobile viewport for AI-friendly SEO#367

Merged
JakeSCahill merged 4 commits intomainfrom
ai-friendly-seo-improvements
Mar 10, 2026
Merged

Add structured data and mobile viewport for AI-friendly SEO#367
JakeSCahill merged 4 commits intomainfrom
ai-friendly-seo-improvements

Conversation

@JakeSCahill
Copy link
Copy Markdown
Contributor

@JakeSCahill JakeSCahill commented Mar 9, 2026

Summary

This PR enhances the documentation site's discoverability and usability for both AI systems and end users by implementing Schema.org structured data and improving mobile responsiveness.

Changes

  • Mobile Viewport Meta Tag: Added responsive viewport configuration for proper mobile device rendering
  • JSON-LD Structured Data: Created new head-structured-data.hbs partial with Organization and WebSite schemas
  • Knowledge Graph Integration: Added social media links (Twitter, LinkedIn, YouTube, BlueSky) via sameAs property
  • SearchAction Schema: Implemented site search integration for better search engine understanding
  • Contact Information: Added ContactPoint schema for improved organization visibility

Benefits for AI Systems

Search Engines & AI Crawlers

  • Better Content Understanding: Structured data helps search engines accurately categorize and index our documentation
  • Rich Snippets: Enables enhanced search results with organization info, search functionality, and social links
  • Knowledge Graph Integration: Social media links help establish consistent brand identity across platforms
  • SearchAction Discovery: AI assistants can understand and reference our site search capabilities

AI Assistants (ChatGPT, Claude, etc.)

  • Improved Context: Clear organization identity and relationships help AI provide more accurate information about Redpanda
  • Direct Attribution: Structured contact and social links enable AI to properly cite and reference Redpanda resources
  • Site Navigation: SearchAction schema helps AI understand how to direct users to find specific documentation

Benefits for End Users

Mobile Users

  • Responsive Design: Viewport meta tag ensures proper scaling on mobile devices
  • Better Reading Experience: Prevents zooming issues and ensures readable text sizes

Search Experience

  • Enhanced Search Results: Rich snippets in Google/Bing provide more context before clicking
  • Quick Access: Site search integration may appear directly in search engine results
  • Social Discovery: Knowledge graph links help users find Redpanda across platforms

Trust & Credibility

  • Professional Appearance: Structured data signals a well-maintained, authoritative resource
  • Easy Contact: Clear contact information builds user confidence
  • Brand Consistency: Connected social profiles reinforce Redpanda's ecosystem

Verification

Tested locally with gulp preview and verified using Playwright:

  • ✅ Viewport meta tag properly rendered
  • ✅ JSON-LD structured data validated
  • ✅ All schemas properly formatted and linked
  • ✅ Page rendering and functionality unaffected

SEO Impact

Based on GPT audit criteria, these changes address 5 critical SEO issues:

  1. ✅ Mobile Viewport - Now responsive
  2. ✅ Organization Schema - Complete with logo and description
  3. ✅ Knowledge Graph Links - All social profiles included
  4. ✅ Website Site Links - SearchAction implemented
  5. ✅ Grounding Data - Contact information added

This commit improves the documentation site's discoverability and
usability for both AI crawlers and end users.

Changes:
- Add mobile viewport meta tag for responsive design
- Add JSON-LD structured data with Organization schema
- Add WebSite schema with SearchAction for site search
- Include social media links (sameAs) for knowledge graph
- Add contact information for better organization visibility

These improvements help search engines and AI assistants better
understand our site structure, content, and organization identity.
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 9, 2026

Deploy Preview for docs-ui ready!

Name Link
🔨 Latest commit 761d81e
🔍 Latest deploy log https://app.netlify.com/projects/docs-ui/deploys/69b05cdd48a5030008ecd3b8
😎 Deploy Preview https://deploy-preview-367--docs-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 36 (🟢 up 8 from production)
Accessibility: 93 (no change from production)
Best Practices: 100 (no change from production)
SEO: 89 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 9, 2026

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ba4f7aa7-ba15-4947-a22d-95e8d92b23be

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This pull request adds SEO-related enhancements to the HTML head section of the site. It introduces a responsive viewport meta tag for mobile compatibility, adds a new head partial containing JSON-LD structured data for search engine optimization (organization and website information), and includes this new partial in the main head template. The changes are purely additive—no existing logic or functionality is modified.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • paulohtb6
  • kbatuigas
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main changes: adding structured data (JSON-LD) and a mobile viewport meta tag for SEO improvements.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description check ✅ Passed The description clearly relates to the changeset, detailing the addition of a viewport meta tag and JSON-LD structured data partial with organization and website schemas.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ai-friendly-seo-improvements

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@JakeSCahill JakeSCahill requested review from a team and Feediver1 March 9, 2026 09:02
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
src/partials/head-structured-data.hbs (1)

7-12: Avoid baking production URLs into this shared partial.

Every entity ID and endpoint here is fixed to the live hosts. That makes preview/local renders emit structured data for a different site, which is brittle for validation and risky if a non-prod build is ever exposed. Prefer deriving the base URL from site config, or only rendering this block in production.

Also applies to: 27-27, 32-43

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/partials/head-structured-data.hbs` around lines 7 - 12, The JSON-LD in
head-structured-data.hbs currently hardcodes production URLs for "@id", "url",
and "logo.url"; change these to use the site's configured base URL instead
(e.g., derive a base URL from the template/site config variable such as
site.baseUrl or site.url) or conditionally render the entire JSON-LD block only
when running in production. Update the "@id", "url", and the nested "logo" "url"
values to be constructed from that base URL variable (e.g., base + path) and
ensure any checks (isProduction or environment flag) guard output if you prefer
runtime gating.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/partials/head-structured-data.hbs`:
- Around line 17-22: The schema's "sameAs" array includes a product repo URL
instead of the organization profile; update the entry in the sameAs array in
src/partials/head-structured-data.hbs by replacing
"https://github.com/redpanda-data/redpanda" with the Redpanda organization
profile URL ("https://github.com/redpanda-data") so the sameAs links
consistently represent the Redpanda Data organization entity.

---

Nitpick comments:
In `@src/partials/head-structured-data.hbs`:
- Around line 7-12: The JSON-LD in head-structured-data.hbs currently hardcodes
production URLs for "@id", "url", and "logo.url"; change these to use the site's
configured base URL instead (e.g., derive a base URL from the template/site
config variable such as site.baseUrl or site.url) or conditionally render the
entire JSON-LD block only when running in production. Update the "@id", "url",
and the nested "logo" "url" values to be constructed from that base URL variable
(e.g., base + path) and ensure any checks (isProduction or environment flag)
guard output if you prefer runtime gating.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 29a21eef-5ba4-4536-b4d8-69a3e3517b10

📥 Commits

Reviewing files that changed from the base of the PR and between 78fcaeb and 2213eaf.

📒 Files selected for processing (3)
  • src/partials/head-meta.hbs
  • src/partials/head-structured-data.hbs
  • src/partials/head.hbs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
"width": 512,
"height": 512
},
"description": "Redpanda is a streaming data platform for developers. Build real-time applications without the complexity of legacy platforms.",
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.

I think this needs to be updated to include something about RP Agentic Data Plane. It has become an key differentiator for our company and is going to be a principal organizational element in our docs when we reorg. I know @emaxerrno is not a fan of "platform" in our mission description.

"@id": "https://docs.redpanda.com/#website",
"url": "https://docs.redpanda.com",
"name": "Redpanda Documentation",
"description": "Redpanda Documentation: Guides, API references, and resources for event streaming.",
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.

Again, I think Agentic Data Plane needs to be part of this description.

Copy link
Copy Markdown
Contributor

@Feediver1 Feediver1 left a comment

Choose a reason for hiding this comment

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

Approving, but please update descriptions to include that we are both a streaming and Agentic Data Plane company.

- Change GitHub sameAs link to organization profile (redpanda-data)
- Update description to include 'Agentic Data Plane'
- Make WebSite schema URLs dynamic using site.url variable
- Keep Organization schema URLs hardcoded (company, not docs site)
@JakeSCahill JakeSCahill merged commit 8bc5f64 into main Mar 10, 2026
5 of 6 checks passed
@JakeSCahill JakeSCahill deleted the ai-friendly-seo-improvements branch March 10, 2026 18:09
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