kubernetes-handbook/node_modules/gitbook-plugin-lightbox
imgbot[bot] da4a82f85d
[ImgBot] Optimize images (#442)
*Total -- 4,270.81kb -> 4,068.30kb (4.74%)

/node_modules/gitbook-plugin-theme-default/_assets/website/images/apple-touch-icon-precomposed-152.png -- 4.70kb -> 1.82kb (61.3%)
/node_modules/gitbook-plugin-sitemap/node_modules/sitemap/env/src/node-v0.12.0-linux-x64/lib/node_modules/npm/node_modules/request/node_modules/hawk/images/hawk.png -- 6.78kb -> 3.41kb (49.68%)
/node_modules/gitbook-plugin-sitemap/node_modules/sitemap/env/lib/node_modules/npm/node_modules/request/node_modules/hawk/images/hawk.png -- 6.78kb -> 3.41kb (49.68%)
/node_modules/hawk/images/hawk.png -- 6.78kb -> 3.41kb (49.68%)
/node_modules/gitbook-plugin-back-to-top-button/screenshots.png -- 24.01kb -> 19.66kb (18.15%)
/node_modules/gitbook-plugin-page-toc-button/screenshot1.png -- 45.28kb -> 38.60kb (14.76%)
/node_modules/gitbook-plugin-theme-default/preview.png -- 212.67kb -> 182.23kb (14.31%)
/node_modules/gitbook-plugin-page-toc-button/screenshot2.png -- 50.49kb -> 43.42kb (14%)
/node_modules/gitbook-plugin-sitemap/node_modules/sitemap/env/src/node-v0.12.0-linux-x64/lib/node_modules/npm/node_modules/request/node_modules/hawk/images/logo.png -- 70.05kb -> 61.60kb (12.06%)
/node_modules/gitbook-plugin-sitemap/node_modules/sitemap/env/lib/node_modules/npm/node_modules/request/node_modules/hawk/images/logo.png -- 70.05kb -> 61.60kb (12.06%)
/node_modules/hawk/images/logo.png -- 70.05kb -> 61.60kb (12.06%)
/node_modules/gitbook-plugin-sitemap/node_modules/sitemap/env/src/node-v0.12.0-linux-x64/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/images/boom.png -- 28.79kb -> 25.58kb (11.14%)
/node_modules/gitbook-plugin-sitemap/node_modules/sitemap/env/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/images/boom.png -- 28.79kb -> 25.58kb (11.14%)
/node_modules/boom/images/boom.png -- 28.79kb -> 25.58kb (11.14%)
/node_modules/gitbook-plugin-splitter/gitbook-splitter-demo.gif -- 274.06kb -> 251.52kb (8.23%)
/node_modules/gitbook-plugin-sitemap/node_modules/sitemap/env/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png -- 37.05kb -> 34.24kb (7.57%)
/node_modules/gitbook-plugin-sitemap/node_modules/sitemap/env/src/node-v0.12.0-linux-x64/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png -- 37.05kb -> 34.24kb (7.57%)
/node_modules/hoek/images/hoek.png -- 37.05kb -> 34.24kb (7.57%)
/node_modules/gitbook-plugin-lightbox/dist/assets/images/prev.png -- 1.33kb -> 1.27kb (4.26%)
/node_modules/gitbook-plugin-lightbox/dist/assets/images/next.png -- 1.32kb -> 1.27kb (3.85%)
/node_modules/gitbook-plugin-search-plus/search2.gif -- 1,156.55kb -> 1,114.27kb (3.66%)
/node_modules/gitbook-plugin-search-plus/search3.gif -- 624.33kb -> 605.30kb (3.05%)
/node_modules/gitbook-plugin-theme-default/_assets/website/fonts/fontawesome/fontawesome-webfont.svg -- 382.44kb -> 377.43kb (1.31%)
/node_modules/gitbook-plugin-search-plus/search.gif -- 1,065.60kb -> 1,057.01kb (0.81%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2021-04-13 09:55:44 +08:00
..
dist [ImgBot] Optimize images (#442) 2021-04-13 09:55:44 +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
      }
    }
  }
}