[remove] migrate Wiki, Recipe, Policy pages to independent #88
[remove] migrate Wiki, Recipe, Policy pages to independent #88TechQuery wants to merge 1 commit into
Conversation
[fix] setup Next.js SWC patch with PNPM 10
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (6)
💤 Files with no reviewable changes (6)
📝 WalkthroughWalkthrough删除 policy、recipe 和 wiki 的索引及动态页面,连同静态路径生成、静态属性获取、内容解析、树形目录和页面渲染实现一并移除。 Changes
Estimated code review effort: 3 (Moderate) | ~20 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
📄 Knowledge review✏️ Suggested updates1 page suggestion needs 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. |
There was a problem hiding this comment.
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/*, andpages/recipe/*page implementations. - Moved
patchedDependenciesconfiguration frompackage.jsonintopnpm-workspace.yaml. - Regenerated
pnpm-lock.yamlto 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
| "resolutions": { | ||
| "mobx-react-helper": "$mobx-react-helper", | ||
| "next": "$next" | ||
| }, | ||
| "pnpm": { | ||
| "patchedDependencies": { | ||
| "next@16.2.10": "patches/next@16.2.10.patch" | ||
| } | ||
| }, | ||
| "prettier": { |
Summary by CodeRabbit