gitbook plugin [updated pkgs] https://github.com/windhamdavid/gitbook-plugin-prism-dw
|
10 years ago | |
---|---|---|
book | 11 years ago | |
.gitignore | 11 years ago | |
LICENSE | 11 years ago | |
README.md | 10 years ago | |
index.js | 10 years ago | |
package.json | 11 years ago |
This is a model for GitBook plugins.
A plugin for GitBook is a node package that can be published on NPM. It has to follow the name convention: gitbook-plugin-*name*
.
The package name should begin with gitbook-plugin-
.
Examples: gitbook-plugin-mixpanel
, gitbook-plugin-googleanalytics
.
The package.json should contain a engine
field using the standard norm.
"engines": {
"gitbook": "*"
}
For example if you want your plugin to supports only GitBook version supperior to 0.3.1:
"engines": {
"gitbook": ">=0.3.1"
}
The plugin entry point should return an object with some metadata.