feat(docs): domain migration, branding assets, dead code cleanup#156
Merged
feat(docs): domain migration, branding assets, dead code cleanup#156
Conversation
- Migrate docs domain from docs.gitlab-mcp.sw.foundation to gitlab-mcp.sw.foundation across CNAME, Worker, README - Remove dead CF Pages Function code (docs/functions/) — all API logic lives in the CF Worker (docs/worker/) - Add favicon, OG image (1200x630), regenerate logo from single high-res source for consistent branding - Add head meta tags for link preview (og:image, og:type, og:site_name) - Fix CI: add needs:deploy to deploy-worker job - Rewrite tests to target Worker directly instead of deleted Pages Function Closes #145
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Pull request overview
This PR migrates the documentation site to the new root docs domain, switches the bug-report backend fully over to the Cloudflare Worker, updates branding assets/meta tags, and fixes the docs deployment workflow and tests accordingly.
Changes:
- Update docs hosting configuration from
docs.gitlab-mcp.sw.foundationtogitlab-mcp.sw.foundation(CNAME, Worker routes, CORS config, README links). - Remove the old Cloudflare Pages Function implementation for
/api/report-bugand retarget unit tests to hit the Cloudflare Workerfetchhandler directly. - Add favicon/logo/OG assets and
<head>meta tags, and ensure thedeploy-workerGitHub Actions job correctly depends on the docsdeployjob.
Reviewed changes
Copilot reviewed 3 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
tests/unit/docs/report-bug-utils.test.ts |
Removes now-obsolete unit tests that targeted the deleted docs/functions/api/utils module. |
tests/unit/docs/report-bug-handler.test.ts |
Rewrites tests to exercise the Cloudflare Worker fetch handler end-to-end, covering routing, CORS, validation, rate limiting, and GitHub API failure/success paths. |
docs/worker/wrangler.toml |
Updates the Worker route pattern to gitlab-mcp.sw.foundation/api/* to match the new docs domain. |
docs/worker/src/index.ts |
Inlines the bug-report API logic into the Worker (validation, CORS, rate limiting, GitHub App auth, ASN.1/PKCS#8 handling) and updates allowed origins for the new domain. |
docs/public/CNAME |
Points the GitHub Pages site to gitlab-mcp.sw.foundation instead of the old subdomain. |
docs/functions/tsconfig.json |
Removes the Pages Functions TypeScript config as the functions/ runtime is no longer used. |
docs/functions/api/utils.ts |
Deletes the shared utils module previously used by the Pages Function; note: this currently breaks the docs widget import (see below). |
docs/functions/api/report-bug.ts |
Removes the Cloudflare Pages Function entrypoint in favor of the Worker-based implementation. |
docs/public/logo.png |
Adds a regenerated logo asset for use as the VitePress site logo. |
docs/public/favicon.ico |
Adds an ICO favicon to support legacy browsers and tab icons. |
docs/public/favicon-32x32.png |
Adds a 32×32 PNG favicon variant. |
docs/public/favicon-16x16.png |
Adds a 16×16 PNG favicon variant. |
docs/public/og-image.png |
Adds the 1200×630 Open Graph image used in social/link previews. |
docs/.vitepress/config.mts |
Registers favicon links and Open Graph meta tags (og:image, og:type, og:site_name) in the docs <head>. |
README.md |
Updates documentation links to the new https://gitlab-mcp.sw.foundation domain. |
.github/workflows/docs.yml |
Ensures the deploy-worker job runs only after the pages deploy job succeeds, aligning Worker deployment with docs updates. |
Notable issue (blocking):
docs/functions/api/utils.tsis deleted, butdocs/.vitepress/theme/components/BugReportWidget.vuestill importsCATEGORIESandMIN_DESCRIPTION_LENGTHfrom that path. This will cause the docs build to fail until those constants are moved to a shared module or the widget import is updated to match the new location (currently only defined insidedocs/worker/src/index.ts).
Comments suppressed due to low confidence (1)
docs/functions/api/utils.ts:1
- Deleting this utils module will break the docs build because
BugReportWidget.vuestill importsCATEGORIESandMIN_DESCRIPTION_LENGTHfromdocs/functions/api/utils. Either keep a shared module for these constants (and re-export from the Worker if needed) or move them to a new shared location and update the widget import path to match; otherwise the VitePress docs cannot compile.
|
🎉 This PR is included in version 6.34.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
2 tasks
polaz
added a commit
that referenced
this pull request
Jan 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cleanup after #155 merge:
docs/functions/api/utils.ts,tsconfig.json)report-bug-utils.test.ts) that tested deleted codeTest plan
yarn lint— 0 errorsyarn build— passesyarn test tests/unit/docs/— 13 tests pass (handler tests remain)