docs: add tip for pageType: doc-wide usage with outline: false#3005
docs: add tip for pageType: doc-wide usage with outline: false#3005
Conversation
1. **`outline: false`** - 仅隐藏大纲栏,但空间保留 2. **`pageType: doc-wide`** - 配合 `outline: false` 和 `sidebar: false` 使用时,正文内容会自动占据更宽的屏幕空间 修改的文件: - `website/docs/zh/api/config/config-frontmatter.mdx:244-256` - `website/docs/en/api/config/config-frontmatter.mdx:244-256`
✅ Deploy Preview for rspress-v2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Rsdoctor Bundle Diff AnalysisFound 3 projects in monorepo, 3 projects with changes. 📊 Quick Summary
📋 Detailed Reports (Click to expand)📁 nodePath:
📦 Download Diff Report: node Bundle Diff 📁 node_mdPath:
📦 Download Diff Report: node_md Bundle Diff 📁 webPath:
📦 Download Diff Report: web Bundle Diff Generated by Rsdoctor GitHub Action |
There was a problem hiding this comment.
Pull request overview
This PR adds documentation explaining the usage of pageType: doc-wide in the frontmatter configuration documentation, specifically clarifying how it differs from using just outline: false.
Changes:
- Added tip sections to both Chinese and English frontmatter documentation files explaining that
outline: falseonly hides the outline column while preserving its space - Provided examples of using
pageType: doc-widewithoutline: falseandsidebar: falseto make content occupy wider screen space
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| website/docs/zh/api/config/config-frontmatter.mdx | Added Chinese documentation tip explaining pageType: doc-wide usage with outline: false and sidebar: false |
| website/docs/en/api/config/config-frontmatter.mdx | Added English documentation tip explaining pageType: doc-wide usage with outline: false and sidebar: false |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
1. 移除了 `sidebar: false`,简化示例为只包含 `pageType: doc-wide` 和 `outline: false` 2. 添加了 `pageType` 的页内链接 `[pageType: doc-wide](#pagetype)` 3. 中英文文档都已更新
- **英文**: 说明 `sidebar: false` 仅隐藏侧边栏但空间保留,可配合 `pageType: doc-wide` 使用 - **中文**: 同样的说明
Summary
Related Issue
Checklist
AI Summary
Changes Made
Added documentation explaining the difference between
outline: falseandpageType: doc-widein the frontmatter configuration docs.Modified files:
website/docs/zh/api/config/config-frontmatter.mdxwebsite/docs/en/api/config/config-frontmatter.mdxDetails
When users set
outline: false, the outline column is hidden but the space it occupied is still reserved. This can be confusing for users who expect the main content to expand into that space.The new tip explains that to make the main content occupy a wider screen space, users should use
pageType: doc-widetogether withoutline: falseandsidebar: false:This combination allows the main content area to automatically expand and occupy the space originally used by the sidebar and outline column.
This PR was written using Vibe Kanban