Skip to content

feat(docs): add JSON-LD structured data for SEO#306

Merged
polaz merged 4 commits intomainfrom
feat/#305-seo-structured-data
Feb 5, 2026
Merged

feat(docs): add JSON-LD structured data for SEO#306
polaz merged 4 commits intomainfrom
feat/#305-seo-structured-data

Conversation

@polaz
Copy link
Copy Markdown
Member

@polaz polaz commented Feb 5, 2026

Summary

Improves documentation site SEO according to Google guidelines by adding JSON-LD structured data schemas.

Changes

Structured Data (JSON-LD)

Schema Scope Description
WebSite All pages Organization info, site name, URL
BreadcrumbList Nested pages Dynamic breadcrumbs from URL path
SoftwareApplication Home + installation App metadata, download URL, version
FAQPage Troubleshooting (via frontmatter) Q&A rich snippets
HowTo Guides (via frontmatter) Step-by-step rich snippets

Technical SEO

  • lang="en-US" attribute added to HTML
  • Improved default meta description fallback
  • Outline config for table of contents (H2-H3 headings)

Files Changed

  • docs/.vitepress/config.mts - JSON-LD generation logic
  • docs/troubleshooting/*.md - FAQ frontmatter added
  • docs/guide/quick-start.md - HowTo frontmatter added

Verification

After merge, validate with:

Test plan

  • yarn lint passes
  • yarn test passes (4593 tests)
  • yarn docs:build succeeds
  • JSON-LD schemas verified in generated HTML

Closes #305

- Add WebSite schema on all pages with organization info
- Add BreadcrumbList schema dynamically based on URL path
- Add SoftwareApplication schema on home/installation pages
- Add FAQPage schema support via frontmatter (troubleshooting pages)
- Add HowTo schema support via frontmatter (guide pages)
- Add lang="en-US" attribute to HTML
- Add outline config for table of contents (H2-H3)
- Improve default meta description fallback

Closes #305
Copilot AI review requested due to automatic review settings February 5, 2026 16:47
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown

Copilot AI left a comment

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 enhances the documentation site's SEO by implementing JSON-LD structured data schemas following Google's guidelines. The changes add machine-readable metadata that helps search engines better understand and display the documentation content in search results.

Changes:

  • Added JSON-LD structured data generation function supporting WebSite, BreadcrumbList, SoftwareApplication, FAQPage, and HowTo schemas
  • Added FAQ frontmatter to four troubleshooting pages (index, docker, connection, clients) with common questions and answers
  • Added HowTo frontmatter to the quick-start guide with step-by-step setup instructions
  • Improved default meta descriptions and added lang="en-US" attribute for better SEO

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
docs/.vitepress/config.mts Implements JSON-LD structured data generation logic with TypeScript types, adds transformHead integration, and improves SEO configuration (lang, description, outline)
docs/troubleshooting/index.md Adds FAQ schema with 4 common troubleshooting questions covering connection, configuration, token testing, and logs
docs/troubleshooting/docker.md Adds FAQ schema with 3 Docker-specific questions about port conflicts, image errors, and viewing logs
docs/troubleshooting/connection.md Adds FAQ schema with 5 connection-related questions covering 401/403 errors, self-signed certificates, missing tools, and timeouts
docs/troubleshooting/clients.md Adds FAQ schema with 3 client configuration questions about detection, server visibility, and JSON validation
docs/guide/quick-start.md Adds HowTo schema with 3 setup steps for getting GitLab MCP running with an AI agent

- Add siteUrl variable combining hostname and base path
- Update WebSite, BreadcrumbList, and SoftwareApplication schemas
- Remove trailing slash from canonical siteUrl
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

- Import version from package.json using createRequire
- Add TOOL_COUNT/ENTITY_COUNT env vars with fallback defaults
- Create shared siteDescription for all meta tags
gitlab-mcp is an OSS project under sw.foundation, not structured.world
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

@polaz polaz merged commit 07e6261 into main Feb 5, 2026
16 checks passed
@polaz polaz deleted the feat/#305-seo-structured-data branch February 5, 2026 17:11
sw-release-bot bot pushed a commit that referenced this pull request Feb 5, 2026
## [6.59.0](v6.58.1...v6.59.0) (2026-02-05)

### Features

* **docs:** add JSON-LD structured data for SEO ([#306](#306)) ([07e6261](07e6261)), closes [#305](#305)
@sw-release-bot
Copy link
Copy Markdown

sw-release-bot bot commented Feb 5, 2026

🎉 This PR is included in version 6.59.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve documentation SEO with structured data (JSON-LD)

2 participants