JSPM

gitbook-plugin-githubcontributors

0.2.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q24256F
  • License GPL-3.0

GitHub contributors for gitbook plugin

Package Exports

  • gitbook-plugin-githubcontributors

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gitbook-plugin-githubcontributors) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

This plugin insterts contributions from GitHub service via GitHub API.

NPM version NPM downloads

If you have any questions, we can Gitter

Features

  • adds contributors from GitHub via GitHub API (0.0.1)
  • link to contributors page (0.1.0)
  • background changes when theme changes (0.1.0)
  • hardcoded link and sorting bugfixes (0.1.1)
  • customisation for contributor div width. Default is 300px (0.2.0)
  • add margin between contributor elements (0.2.1)

Usage

Add plugin and it's configuration to your book.json file:

"plugins": [
  "githubcontributors"
],
"pluginsConfig": {
  "githubcontributors": {
    "githubOwner": "username",      // GitHub user name e.g. sta-szek
    "githubRepository": "repo-name" // GitHub repo name e.g. pojo-tester
  }
}

Then you have to tell plugin, where you want the content to be inserted. To do this use gitbook block:

{% GitHubContributors %}
{% endGitHubContributors %}

Sample result

Feel free to contribute!

If you have any ideas just rise and issue or send PR! 🍻