Skip to content

fix(docs): resolve SEO issues in documentation#250

Merged
polaz merged 2 commits intomainfrom
fix/#249-docs-seo
Jan 31, 2026
Merged

fix(docs): resolve SEO issues in documentation#250
polaz merged 2 commits intomainfrom
fix/#249-docs-seo

Conversation

@polaz
Copy link
Copy Markdown
Member

@polaz polaz commented Jan 31, 2026

Summary

  • Fix titleTemplate: use :title placeholder instead of %s (VitePress v1.6.4)
  • Add titleTemplate: false to home page to prevent "GitLab MCP | GitLab MCP"
  • Enable cleanUrls: true — remove .html from all URLs and sitemap entries
  • Add <link rel="canonical"> via transformHead for all pages
  • Add lastmod to sitemap entries via transformItems
  • Add <meta name="keywords"> to all 72 documentation pages (.md and .md.in)
  • Add /TOOLS pattern to ignoreDeadLinks (generated file may not exist at build time)

Test plan

  • DOCS_BASE=/ npx vitepress build docs — builds successfully
  • No %s in <title> tags
  • Home page title is GitLab MCP (not GitLab MCP | GitLab MCP)
  • Canonical links present on all pages
  • Keywords meta present on all pages
  • Sitemap has lastmod on all entries, no .html in URLs

Closes #249

- Fix titleTemplate: use `:title` placeholder instead of `%s` (VitePress v1.6.4)
- Add `titleTemplate: false` to home page to avoid "GitLab MCP | GitLab MCP"
- Enable `cleanUrls: true` to remove `.html` from URLs and sitemap
- Add `<link rel="canonical">` via transformHead for all pages
- Add `lastmod` to sitemap entries via transformItems
- Add `<meta name="keywords">` to all 72 documentation pages
- Add `/TOOLS` pattern to ignoreDeadLinks (generated file may not exist at build time)

Closes #249
Copilot AI review requested due to automatic review settings January 31, 2026 10:22
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 resolves multiple SEO issues in the VitePress documentation site by updating configuration and adding metadata to all documentation pages.

Changes:

  • Fixed titleTemplate syntax for VitePress v1.6.4+ compatibility (changed from %s to :title)
  • Enabled clean URLs, added canonical links, and sitemap lastmod dates
  • Added SEO-optimized keywords meta tags to all 72 documentation pages

Reviewed changes

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

Show a summary per file
File Description
docs/.vitepress/config.mts Updated titleTemplate syntax, enabled cleanUrls, added canonical links via transformHead, added lastmod to sitemap entries, added /TOOLS pattern to ignoreDeadLinks
docs/index.md.in Added titleTemplate: false to prevent duplication, added keywords meta tag
docs/troubleshooting/*.md Added keywords meta tags for troubleshooting pages
docs/tools/*.md Added keywords meta tags for tool reference pages
docs/sponsor.md Added keywords meta tag for sponsor page
docs/setup-github-secrets.md Added keywords meta tag for GitHub secrets setup
docs/security/*.md Added keywords meta tags for security pages
docs/prompts/**/*.md Added keywords meta tags for all prompt library pages
docs/guides/*.md Added keywords meta tags for all guide pages
docs/guide/**/*.md Added keywords meta tags for all getting started and installation pages
docs/deployment/*.md Added keywords meta tags for all deployment pages
docs/clients/*.md Added keywords meta tags for all client setup pages
docs/cli/*.md Added keywords meta tags for all CLI reference pages
docs/advanced/*.md Added keywords meta tags for advanced configuration pages

@polaz polaz merged commit 3e05717 into main Jan 31, 2026
16 checks passed
@polaz polaz deleted the fix/#249-docs-seo branch January 31, 2026 10:27
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

sw-release-bot bot pushed a commit that referenced this pull request Feb 2, 2026
## [6.51.0](v6.50.0...v6.51.0) (2026-02-02)

### Features

* **docs:** consent banner + vue-privacy 1.2.2 with gtag fix ([#255](#255)) ([75eb54b](75eb54b))

### Bug Fixes

* **ci:** prevent transitive skip propagation in release pipeline ([#266](#266)) ([f809a7a](f809a7a)), closes [#264](#264) [#265](#265) [#265](#265)
* **ci:** replace heredoc with quoted strings in thread-gate job ([#246](#246)) ([9470b50](9470b50)), closes [#243](#243) [#245](#245)
* **ci:** unblock release pipeline on push to main ([#264](#264)) ([59b8cbe](59b8cbe)), closes [#263](#263)
* **deps:** update hono from 4.11.5 to 4.11.7 ([#248](#248)) ([71cc831](71cc831)), closes [#247](#247)
* **docs:** resolve SEO issues in VitePress documentation ([#249](#249)) ([#250](#250)) ([3e05717](3e05717))
* **docs:** use canonical URL for TOOLS reference in README ([#252](#252)) ([5ac56cc](5ac56cc)), closes [#251](#251)
* **pipelines:** serialize array query params as key[] for GitLab Rails API ([#262](#262)) ([955a3c1](955a3c1)), closes [#261](#261)
@sw-release-bot
Copy link
Copy Markdown

sw-release-bot bot commented Feb 2, 2026

🎉 This PR is included in version 6.51.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.

Fix SEO issues in docs

2 participants