A gitbook plugin to show image by lightbox.
npm install gitbook-plugin-lightboxjson
{
"plugins": ["lightbox"]
}
`
Usage
Just add image as normal, this plugin will do all things for you.
Config
There are something you can tweak!
$3
If you have already include jQuery in other place, you can set:
`json
{
"pluginsConfig": {
"lightbox": {
"includeJQuery": false
}
}
}
`
$3
If you want to use next/prev button, you can set:
`json
{
"pluginsConfig": {
"lightbox": {
"sameUuid": true
}
}
}
`
$3
If you want to set lightbox configration, yo can set:
`json
{
"pluginsConfig": {
"lightbox": {
"options": {
"resizeDuration": 200,
"wrapAround": true
}
}
}
}
``