Contributing
Contributions are welcome. Here’s how to get started.
Development setup
Section titled “Development setup”-
Fork and clone
Terminal window git clone https://github.com/your-username/RepoWidget.gitcd RepoWidget -
Install dependencies
Terminal window npm install -
Build the widget
Terminal window npm run buildThis produces
dist/repoWidget.jsanddist/repoWidget.min.js. -
Run the docs locally
Terminal window cd docsnpm installnpm run devThe docs site starts at
http://localhost:4321.
Project structure
Section titled “Project structure”RepoWidget/├── src/│ └── lib/│ └── repoWidget.js ← widget source├── dist/ ← built output (generated)├── docs/ ← Astro/Starlight documentation site│ ├── astro.config.mjs│ ├── src/│ │ ├── components/ ← custom Astro components│ │ └── content/docs/ ← all MDX/Markdown pages│ └── public/ ← static assets├── build.js ← build script└── package.jsonSubmitting changes
Section titled “Submitting changes”- Open an issue first for significant changes so we can discuss the approach.
- Keep pull requests focused — one feature or fix per PR.
- Update docs in
docs/src/content/docs/when changing the API or adding options. - Run
npm run buildbefore submitting to ensure the dist files are up to date.
Reporting bugs
Section titled “Reporting bugs”Open an issue at github.com/peterbenoit/RepoWidget/issues and include:
- What you expected to happen
- What actually happened
- A minimal reproduction (HTML file or CodePen link)
- Browser and OS version
License
Section titled “License”RepoWidget is released under the MIT License.