gitbook-plugin-lightbox

1.2.0 • Public • Published

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
      }
    }
  }
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    167
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    167
  • 1.1.0
    0

Package Sidebar

Install

npm i gitbook-plugin-lightbox

Weekly Downloads

200

Version

1.2.0

License

MIT

Unpacked Size

101 kB

Total Files

11

Last publish

Collaborators

  • vongola12324