Skip to content

Conversation

@Timeless0911
Copy link
Contributor

Summary

refactor section headers

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings November 17, 2025 11:58
@netlify
Copy link

netlify bot commented Nov 17, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit fb1c31e
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/691bf8ad0718a300083c3552
😎 Deploy Preview https://deploy-preview-1342--rslib.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

Copilot finished reviewing on behalf of Timeless0911 November 17, 2025 12:01
Copy link
Contributor

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 refactors documentation section headers to improve navigation and consistency across the documentation site. The changes modernize the structure by introducing new section header types and reorganizing configuration documentation.

Key changes:

  • Refactored Overview.tsx component to use the built-in OverviewGroup component from @rspress/core/theme instead of custom implementation
  • Updated section types in _meta.json files from "dir" to "dir-section-header" and introduced "section-header" type
  • Standardized index page titles to "Overview" (or "总览" in Chinese) across configuration and solution sections

Reviewed Changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
website/theme/components/Overview.tsx Refactored to use OverviewGroup component with i18n support and hardcoded configuration items
website/theme/components/Overview.module.scss Removed custom styles as component now uses theme's built-in styling
website/docs/en/guide/_meta.json Changed section types to "dir-section-header" and updated "Getting Started" label to "Start"
website/docs/zh/guide/_meta.json Changed section types to "dir-section-header" for consistency
website/docs/en/guide/solution/index.mdx Changed page title from "Solution" to "Overview"
website/docs/zh/guide/solution/index.mdx Changed page title from "解决方案" to "总览"
website/docs/en/guide/solution/_meta.json Added "index" to navigation order
website/docs/zh/guide/solution/_meta.json Added "index" to navigation order
website/docs/en/config/_meta.json Changed section types and restructured with new "section-header" type
website/docs/zh/config/_meta.json Changed section types and restructured with new "section-header" type
website/docs/en/config/index.mdx Changed frontmatter to use pageType and added Overview component
website/docs/zh/config/index.mdx Changed frontmatter to use pageType and added Overview component
website/docs/en/config/lib/index.mdx Changed title to "Overview" and reordered interface properties
website/docs/zh/config/lib/index.mdx Changed title to "总览" and reordered interface properties
website/docs/en/config/lib/_meta.json Added "index" and reordered configuration items alphabetically
website/docs/zh/config/lib/_meta.json Added "index" and reordered configuration items alphabetically
website/docs/en/config/rsbuild/index.mdx Changed title to "Overview" and moved tip section
website/docs/zh/config/rsbuild/index.mdx Changed title to "总览" and moved tip section
website/docs/en/config/rsbuild/_meta.json Added "index" to navigation order
website/docs/zh/config/rsbuild/_meta.json Added "index" to navigation order

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@chenjiahan chenjiahan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@chenjiahan chenjiahan merged commit bc07f4d into main Nov 18, 2025
16 checks passed
@chenjiahan chenjiahan deleted the section-header branch November 18, 2025 04:59
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