A gitbook plugin to show image by lightbox
- Gitbook >= 3.0.0
Add the below to your book.json file, then run gitbook install :
{
"plugins": ["lightbox"]
}
Just add image as normal, this plugin will do all things for you.
There are something you can tweak!
If you have already include jQuery in other place, you can set:
{
"pluginsConfig": {
"lightbox": {
"includeJQuery": false
}
}
}
If you want to use next/prev button, you can set:
{
"pluginsConfig": {
"lightbox": {
"sameUuid": true
}
}
}
If you want to set lightbox configration, yo can set:
{
"pluginsConfig": {
"lightbox": {
"options": {
"resizeDuration": 200,
"wrapAround": true
}
}
}
}