Skip to content

Conversation

@wuyiping0628
Copy link
Contributor

@wuyiping0628 wuyiping0628 commented Jan 21, 2026

Summary by CodeRabbit

  • Chores

    • Updated documentation links so the "引入与使用" entry points to the quick-start guide.
    • Consolidated sidebar navigation for TinyRobot into a shared structure for more consistent access.
    • Added redirects so key TinyRobot section URLs land on their primary overview pages.
  • Bug Fixes

    • Improved header navigation logic to highlight the correct product tab across related docs.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Jan 21, 2026

Walkthrough

Centralized tiny-robot sidebar config and route rewrites, adjusted home navigation link, added extra tiny-robot redirect mappings, and changed navigation-tab logic to treat multiple tiny-robot/related paths as the product guide tab.

Changes

Cohort / File(s) Summary
Home link change
\.vitepress/theme/home/index.vue
Changed right-side TinyRobot link target: /tiny-robot/guide/usage.html#引入与使用/tiny-robot/guide/quick-start.html#引入与使用.
Sidebar & route rewrites
\.vitepress/config\.mts
Introduced robotSidebarItems shared constant; replaced per-route sidebar blocks for /tiny-robot/guide/, /tiny-robot/components/, /tiny-robot/tools/ with the shared sidebar; added rewrites mapping tiny-robot/docs/src/guide/:path*tiny-robot/guide/:path*, .../components/:path*tiny-robot/components/:path*, .../tools/:path*tiny-robot/tools/:path* while retaining existing mappings.
Redirect mappings
\.vitepress/theme/Layout\.vue
Added redirect patterns routing `/tiny-robot/components(.html
Nav tab logic
\.vitepress/theme/components/CustomHeader\.vue
Added computed ifProductTab boolean to centralize route/path checks; navigation now treats those product-related paths as the "guide" tab (sets active tab to "guide" when true).

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 In burrows bright I hop and cheer,
Links rebloom and routes appear,
A sidebar stitched, redirects set,
Tiny-robot's paths are neatly met. ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title 'feat: fix the 404 issue with the homepage link and refactoring the tiny-robot menu' accurately describes the main changes: addressing a 404 issue in homepage links and restructuring the tiny-robot menu configuration.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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 and usage tips.

@wuyiping0628 wuyiping0628 changed the title feat: fix the 404 issue with the homepage link feat: fix the 404 issue with the homepage link and refactoring the tiny-robot menu Jan 22, 2026
@kagol kagol merged commit d23cb7b into opentiny:dev Jan 29, 2026
0 of 3 checks passed
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.

2 participants