Skip to content

fix: wire sync-contributing into build pipeline (closes #246)#474

Open
frameworks-volunteer wants to merge 2 commits intosecurity-alliance:developfrom
frameworks-volunteer:fix/issue-246-dedup-contributing
Open

fix: wire sync-contributing into build pipeline (closes #246)#474
frameworks-volunteer wants to merge 2 commits intosecurity-alliance:developfrom
frameworks-volunteer:fix/issue-246-dedup-contributing

Conversation

@frameworks-volunteer
Copy link
Copy Markdown
Collaborator

Summary

Wires the existing utils/sync-contributing.js script into the build pipeline so that CONTRIBUTING.md at the repo root is automatically generated from docs/pages/contribute/contributing.mdx on every build/dev start. This eliminates the need to manually keep both files in sync.

Changes

  • package.json: Added sync-contributing script and prepended it to docs:dev and docs:build so the sync runs before every build and dev server start.
  • justfile: Added sync recipe for manual invocation (just sync), and cleaned up trailing whitespace on the serve recipe.
  • CONTRIBUTING.md: Regenerated from .mdx source via the sync script. Minor formatting differences reflect the automated transformation (line wraps, whitespace) -- content is unchanged.

How it works

The sync-contributing.js script reads contributing.mdx, strips MDX-specific elements (frontmatter, JSX comments, imports, components), converts internal links and Mermaid components to plain markdown, and writes the result to the root CONTRIBUTING.md with an auto-generated header warning not to edit it directly.

Closes #246

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
frameworks ✅ Ready (View Log) Visit Preview 03b7287

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.

Duplicated CONTRIBUTING.md

1 participant