Skip to content

feat(docs): improve SEO metadata and sitemap - #29

Merged
saseungmin merged 3 commits into
mainfrom
codex/docs-seo
Oct 27, 2026
Merged

saseungmin merged 3 commits into
mainfrom
codex/docs-seo

Conversation

@saseungmin

@saseungmin saseungmin commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Documentation pages previously had no canonical tags or sitemap, and their language alternates used relative URLs and stayed on the entry page during client-side navigation.

Configure the production origin and clean URLs to match Cloudflare Pages, then manage canonical and reciprocal English/Korean hreflang links through Rspress useHead. The local SEO plugin supplies language alternatives from matching routes within the same documentation version and generates sitemap.xml from document routes. robots.txt advertises the sitemap; the 404 page and public verification assets are excluded. Document the setup in docs/README.md.

The implementation uses the existing Rspress 2.0.23 public configuration, plugin, and runtime APIs without dependency changes. Built-in sitemap configuration starts in 2.1.0, so this version uses the routeGenerated and afterBuild hooks. extendPageData supplies custom runtime metadata at the top level, preserving it when Rspress loads compiled MDX frontmatter.

Validation

  • Formatting, lint, root/docs typechecks, and all 216 existing tests pass; commit hooks also pass.
  • Production build and manual HTML/XML inspection: all 28 English/Korean documents have exactly one canonical and two reciprocal language links, with no duplicate head tags. The sitemap contains exactly the same 28 unique canonical URLs.
  • Browser smoke checks in production preview and development mode: canonical and both language alternatives update after internal navigation.
  • The Google verification file is preserved, and 404/public assets are excluded from the sitemap.

References

@changeset-bot

changeset-bot Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f7ff5e5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T14:25:14.241806Z 2879fb4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Deploying react-native-swipe-deck with  Cloudflare Pages  Cloudflare Pages

Latest commit: f7ff5e5
Status: ✅  Deploy successful!
Preview URL: https://7b8a0e5e.react-native-swipe-deck.pages.dev
Branch Preview URL: https://codex-docs-seo.react-native-swipe-deck.pages.dev

View logs

@saseungmin
saseungmin merged commit 71c7192 into main Oct 27, 2026
4 checks passed
@saseungmin
saseungmin deleted the codex/docs-seo branch October 27, 2026 14:43
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.

1 participant