Skip to content

Contributing

Contributions are welcome. Here’s how to get started.

  1. Fork and clone

    Terminal window
    git clone https://github.com/your-username/RepoWidget.git
    cd RepoWidget
  2. Install dependencies

    Terminal window
    npm install
  3. Build the widget

    Terminal window
    npm run build

    This produces dist/repoWidget.js and dist/repoWidget.min.js.

  4. Run the docs locally

    Terminal window
    cd docs
    npm install
    npm run dev

    The docs site starts at http://localhost:4321.

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.json
  • 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 build before submitting to ensure the dist files are up to date.

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

RepoWidget is released under the MIT License.