Skip to content

[remove] migrate Wiki, Recipe, Policy pages to independent #88

Open
TechQuery wants to merge 1 commit into
mainfrom
migrate-wiki-pages
Open

[remove] migrate Wiki, Recipe, Policy pages to independent #88
TechQuery wants to merge 1 commit into
mainfrom
migrate-wiki-pages

Conversation

@TechQuery

@TechQuery TechQuery commented Jul 12, 2026

Copy link
Copy Markdown
Member

PR-88 PR-88 PR-88 Powered by Pull Request Badge

  1. [remove] migrate Wiki, Recipe, Policy pages to independent
  2. [fix] setup Next.js SWC patch with PNPM 10

Summary by CodeRabbit

  • 功能变更
    • 移除了政策文档、食谱文档及 Wiki 索引页面。
    • 移除了政策与食谱的详情页面,以及 Wiki 文档详情页面。
    • 相关目录浏览、文档内容展示、元信息和编辑/查看原文入口不再提供。
  • 影响
    • 访问上述页面路径时将不再显示原有文档内容或目录。

Copilot AI review requested due to automatic review settings July 12, 2026 00:43
@coderabbitai

coderabbitai Bot commented Jul 12, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e0efc98c-1fd7-4aed-bc7b-f7aa1e6010d0

📥 Commits

Reviewing files that changed from the base of the PR and between cd2371d and 2c281f7.

⛔ Files ignored due to path filters (3)
  • package.json is excluded by none and included by none
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !pnpm-lock.yaml and included by none
  • pnpm-workspace.yaml is excluded by none and included by none
📒 Files selected for processing (6)
  • pages/policy/[...slug].tsx
  • pages/policy/index.tsx
  • pages/recipe/[...slug].tsx
  • pages/recipe/index.tsx
  • pages/wiki/[node_token].tsx
  • pages/wiki/index.tsx
💤 Files with no reviewable changes (6)
  • pages/wiki/index.tsx
  • pages/recipe/[...slug].tsx
  • pages/wiki/[node_token].tsx
  • pages/policy/[...slug].tsx
  • pages/recipe/index.tsx
  • pages/policy/index.tsx

📝 Walkthrough

Walkthrough

删除 policy、recipe 和 wiki 的索引及动态页面,连同静态路径生成、静态属性获取、内容解析、树形目录和页面渲染实现一并移除。

Changes

Cohort / File(s) Summary
内容页面路由移除
pages/policy/*, pages/recipe/*, pages/wiki/*
移除六个页面模块及其默认导出、Pages Router 数据获取、Markdown 解析、Wiki 节点加载、目录树和文档渲染逻辑。

Estimated code review effort: 3 (Moderate) | ~20 minutes

🚥 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 标题与变更一致,准确概括了 Wiki、Recipe、Policy 页面迁移/移除到独立项目这一主要改动。
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 docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch migrate-wiki-pages

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.

@dosubot

dosubot Bot commented Jul 12, 2026

Copy link
Copy Markdown

📄 Knowledge review

✏️ Suggested updates

1 page suggestion needs review.

Page Library Status
Open Source Policy and Governance Open Source Bazaar's Space 🟡 Review
📝 Open Source Policy and Governance
@@ -1,8 +1,8 @@
-The Open Source Bazaar project maintains a comprehensive framework for open source policy, licensing, and community standards, with clear documentation and integration into the project’s navigation and contribution workflows.
+The Open Source Bazaar project maintains a comprehensive framework for open source policy, licensing, and community standards, with clear documentation and integration into the project's navigation and contribution workflows.
 
 Open Source Policies and Documentation
 
-Open source policies are documented as Markdown files in a wiki-like structure. These documents are dynamically rendered and organized in a tree view on the `/policy` page of the project website, allowing users to browse by topic and hierarchy. Each policy page displays metadata such as category, issuing organization, validity status, and creation/publication dates using badges and labels for clarity. The policy pages include direct links to the source Markdown files on GitHub, enabling users to view, edit, or contribute to the policy documentation. A dedicated button on the policy page links to the GitHub repository (`fpsig/open-source-policy`), supporting an open contribution model for policy content. The policy section is fully integrated into the site’s navigation and internationalization context, ensuring discoverability and accessibility for all users [[source]](https://github.com/Open-Source-Bazaar/Open-Source-Bazaar.github.io/blob/f5df98635f7a8bdab44cded44633ecbc3145a73f/pages/policy/index.tsx) [[source]](https://github.com/Open-Source-Bazaar/Open-Source-Bazaar.github.io/blob/f5df98635f7a8bdab44cded44633ecbc3145a73f/pages/policy/[...slug].tsx).
+Open source policies are documented as Markdown files in a wiki-like structure. Policy documentation has been migrated to an independent project and is maintained in the GitHub repository (`fpsig/open-source-policy`), supporting an open contribution model for policy content. These documents cover topics such as open source governance, licensing frameworks, and community standards.
 
 Licensing
 
@@ -10,14 +10,14 @@
 
 Code of Conduct
 
-The project’s Code of Conduct, titled “行为规范” (Behavior Code), is versioned and last updated in September 2025. It applies to all community interactions, including online groups (WeChat, Feishu), meetings, events, GitHub repositories, and other official channels. The code emphasizes legal compliance, anti-harassment, respectful communication, privacy protection, content quality, and community participation. Enforcement mechanisms are clearly defined: community managers and administrators can issue warnings, restrict permissions, or permanently remove violators. The Code of Conduct is adapted from established open source community guidelines such as freeCodeCamp and Contributor Covenant 2.0, ensuring alignment with best practices. The document is accessible from the main navigation menu under the “about” section as `/article/code-of-conduct` [[source]](https://github.com/Open-Source-Bazaar/Open-Source-Bazaar.github.io/blob/f5df98635f7a8bdab44cded44633ecbc3145a73f/pages/article/code-of-conduct.mdx) [[source]](https://github.com/Open-Source-Bazaar/Open-Source-Bazaar.github.io/blob/f5df98635f7a8bdab44cded44633ecbc3145a73f/components/Navigator/MainNavigator.tsx).
+The project's Code of Conduct, titled "行为规范" (Behavior Code), is versioned and last updated in September 2025. It applies to all community interactions, including online groups (WeChat, Feishu), meetings, events, GitHub repositories, and other official channels. The code emphasizes legal compliance, anti-harassment, respectful communication, privacy protection, content quality, and community participation. Enforcement mechanisms are clearly defined: community managers and administrators can issue warnings, restrict permissions, or permanently remove violators. The Code of Conduct is adapted from established open source community guidelines such as freeCodeCamp and Contributor Covenant 2.0, ensuring alignment with best practices. The document is accessible from the main navigation menu under the "about" section as `/article/code-of-conduct` [[source]](https://github.com/Open-Source-Bazaar/Open-Source-Bazaar.github.io/blob/f5df98635f7a8bdab44cded44633ecbc3145a73f/pages/article/code-of-conduct.mdx) [[source]](https://github.com/Open-Source-Bazaar/Open-Source-Bazaar.github.io/blob/f5df98635f7a8bdab44cded44633ecbc3145a73f/components/Navigator/MainNavigator.tsx).
 
 Navigation Integration
 
-The main navigation menu includes direct links to the wiki and policy sections, as well as the Code of Conduct, making these resources easily accessible. The “wiki” section links to both `/wiki` and `/policy`, while the “about” section includes a link to the Code of Conduct. Breadcrumb navigation and contextual links further enhance discoverability and user experience [[source]](https://github.com/Open-Source-Bazaar/Open-Source-Bazaar.github.io/blob/f5df98635f7a8bdab44cded44633ecbc3145a73f/components/Navigator/MainNavigator.tsx).
+Navigation menus may include links to policy and wiki resources, as well as the Code of Conduct, making these resources easily accessible. Breadcrumb navigation and contextual links further enhance discoverability and user experience.
 
 Governance Model
 
-No specific information about the project’s governance model (such as meritocratic, committee-based, or benevolent dictator models) was found in the available documentation or committee meeting records. Governance models are typically described in dedicated documents (e.g., `governance.md`), committee notes, or wiki sections. If clarification is needed, maintainers or contributors are encouraged to document the governance structure in a prominent location within the wiki or project documentation.
+No specific information about the project's governance model (such as meritocratic, committee-based, or benevolent dictator models) was found in the available documentation or committee meeting records. Governance models are typically described in dedicated documents (e.g., `governance.md`), committee notes, or wiki sections. If clarification is needed, maintainers or contributors are encouraged to document the governance structure in a prominent location within the wiki or project documentation.
 
-For further details or to contribute to policy and governance documentation, refer to the policy section and the linked GitHub repositories in the project navigation.
+For further details or to contribute to policy and governance documentation, refer to the linked GitHub repositories in the project navigation.

Accept · Edit · Decline


Leave Feedback Ask Dosu about Open-Source-Bazaar.github.io Add Dosu to your team

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Removes the built-in Next.js page routes for Wiki/Policy/Recipe content (presumably because these sections are being migrated to independent destinations) and adjusts PNPM configuration to apply a patched Next.js dependency under PNPM 10+.

Changes:

  • Removed pages/wiki/*, pages/policy/*, and pages/recipe/* page implementations.
  • Moved patchedDependencies configuration from package.json into pnpm-workspace.yaml.
  • Regenerated pnpm-lock.yaml to reflect the patched Next.js dependency hash/metadata.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pnpm-workspace.yaml Adds patchedDependencies so PNPM applies the local patch for next@16.2.10.
pnpm-lock.yaml Updates patch hash/lock metadata for the patched Next.js dependency and related packages.
pages/wiki/index.tsx Deletes the Wiki index page route.
pages/wiki/[node_token].tsx Deletes the Wiki document page route.
pages/recipe/index.tsx Deletes the Recipe index page route.
pages/recipe/[...slug].tsx Deletes the Recipe markdown-rendering page route.
pages/policy/index.tsx Deletes the Policy index page route.
pages/policy/[...slug].tsx Deletes the Policy markdown-rendering page route.
package.json Removes pnpm.patchedDependencies config (now managed via workspace YAML).
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

Comment thread package.json
Comment on lines 87 to 91
"resolutions": {
"mobx-react-helper": "$mobx-react-helper",
"next": "$next"
},
"pnpm": {
"patchedDependencies": {
"next@16.2.10": "patches/next@16.2.10.patch"
}
},
"prettier": {
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