gitbook-plugin-contributors-each-page

1.0.1 • Public • Published

Gitbook-plugin-contributors-each-page

A gitbook plugins that adds the list of contributors for each page (works only with GitHub)

Example

example

Installation

npm install gitbook-plugin-contributors-each-page --save-dev

Update book.json, do not forget to replace owner and repository with your Github owner and Github repository name:

{
  "plugins": [
    "contributors-each-page"
  ],
  "contributors-each-page": {
      "owner": "naming-convention",
      "repository": "naming-convention-guides",
      "title": "Contributors",
      "excluded": ["README.md"]
    }
  }
}

Excluded contains the array of filepath of file where you don't want to add the contributors.

To overcome the problem with the Github API, add a .env file on the root of your gitbook project, go there to create one: https://github.com/settings/tokens

GH_TOKEN=your_github_token

Package Sidebar

Install

npm i gitbook-plugin-contributors-each-page

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

48.8 kB

Total Files

5

Last publish

Collaborators

  • sandoche