kubernetes-handbook/node_modules/gitbook-plugin-lightbox
Jimmy Song 8994b10440
update cover
2022-03-01 22:28:42 +08:00
..
dist update cover 2022-03-01 22:28:42 +08:00
node_modules add node modules 2021-04-13 00:24:28 +08:00
LICENSE add node modules 2021-04-13 00:24:28 +08:00
README.md add node modules 2021-04-13 00:24:28 +08:00
package.json add node modules 2021-04-13 00:24:28 +08:00

README.md

gitbook-plugin-lightbox

A gitbook plugin to show image by lightbox

Requirement

  • Gitbook >= 3.0.0

Installation

Add the below to your book.json file, then run gitbook install :

{
  "plugins": ["lightbox"]
}

Usage

Just add image as normal, this plugin will do all things for you.

Config

There are something you can tweak!

jQuery

If you have already include jQuery in other place, you can set:

{
  "pluginsConfig": {
    "lightbox": {
      "includeJQuery": false
    }
  }
}

Same lightbox id

If you want to use next/prev button, you can set:

{
  "pluginsConfig": {
    "lightbox": {
      "sameUuid": true
    }
  }
}

Lightbox original configuration

If you want to set lightbox configration, yo can set:

{
  "pluginsConfig": {
    "lightbox": {
      "options": {
        "resizeDuration": 200,
        "wrapAround": true
      }
    }
  }
}