Skip to content

fix(i18n): point edit links at localized docs#607

Merged
hami-robot[bot] merged 1 commit into
Project-HAMi:masterfrom
spencercjh:task12-edit-link-locale
Jul 14, 2026
Merged

fix(i18n): point edit links at localized docs#607
hami-robot[bot] merged 1 commit into
Project-HAMi:masterfrom
spencercjh:task12-edit-link-locale

Conversation

@spencercjh

@spencercjh spencercjh commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Most of this Pull Request was generated or revised with the assistance of AI tools, including Codex and Raft(Slock). I have reviewed the resulting content and take full responsibility for its accuracy, security, licensing compliance, and inclusion in this project.

Summary

  • fix docs/tutorials edit links to use versionDocsDirPath instead of hardcoded English-only source roots
  • preserve correct localized edit targets for Chinese current docs, versioned docs, and tutorials
  • leave English edit targets unchanged

Verification

  • verified zh current docs edit links resolve to i18n/zh/docusaurus-plugin-content-docs/current/...
  • verified zh versioned docs edit links resolve to i18n/zh/docusaurus-plugin-content-docs/version-v2.8.0/...
  • verified zh tutorials edit links resolve to i18n/zh/docusaurus-plugin-content-docs-tutorials/current/...
  • prettier --check docusaurus.config.js

Notes

  • full npm run build -- --locale zh still hits pre-existing broken links unrelated to this change

Summary by CodeRabbit

  • Bug Fixes
    • Improved documentation “Edit this page” links to consistently direct contributors to the correct versioned source files on GitHub.
    • Updated documentation and tutorial links to use a shared, reliable URL format.

Signed-off-by: spencercjh <jiahao.cai@dynamia.ai>
@netlify

netlify Bot commented Jul 14, 2026

Copy link
Copy Markdown

Deploy Preview for project-hami ready!

Name Link
🔨 Latest commit 5671889
🔍 Latest deploy log https://app.netlify.com/projects/project-hami/deploys/6a560df22cecde000913714c
😎 Deploy Preview https://deploy-preview-607--project-hami.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

@hami-robot hami-robot Bot requested review from wawa0210 and windsonsea July 14, 2026 10:22
@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 319d4ac0-dfb0-40b4-b730-cebdfad38bdc

📥 Commits

Reviewing files that changed from the base of the PR and between 3d2c784 and 5671889.

📒 Files selected for processing (1)
  • docusaurus.config.js

📝 Walkthrough

Walkthrough

Docusaurus now centralizes GitHub edit URL construction and uses version-aware paths for both documentation and tutorial edit links.

Changes

Documentation edit URL generation

Layer / File(s) Summary
Shared edit URL helper and plugin wiring
docusaurus.config.js
Adds a shared GitHub base URL and helper, then updates documentation and tutorial editUrl callbacks to use versionDocsDirPath and docPath.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested labels: lgtm, approved

Suggested reviewers: rootsongjc, mesutoezdil

Poem

A bunny hops through docs so bright,
Linking each page to edits right.
Version paths now neatly flow,
Tutorials join the GitHub show.
“Nibble-approved!” the rabbit sings.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the main change: fixing localized documentation edit links for i18n.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@hami-robot hami-robot Bot added the size/S label Jul 14, 2026
@spencercjh

Copy link
Copy Markdown
Contributor Author

@spencercjh spencercjh marked this pull request as ready for review July 14, 2026 10:46
@hami-robot hami-robot Bot requested a review from mesutoezdil July 14, 2026 10:46
@spencercjh

Copy link
Copy Markdown
Contributor Author

/assign rootsongjc

@hami-robot

hami-robot Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: spencercjh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@spencercjh

Copy link
Copy Markdown
Contributor Author

/assign mesutoezdil

@hami-robot hami-robot Bot merged commit 397c662 into Project-HAMi:master Jul 14, 2026
12 checks passed
@spencercjh spencercjh deleted the task12-edit-link-locale branch July 14, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants