gitbook-plugin-modal

0.0.2 • Public • Published

gitbook-plugin-modal

Plugin for GitBook to show a modal in page.

Use

{
  "plugins": [
    "modal"
  ],
  "pluginsConfig": {
    "modal": {
      "html": "<h1>123</h1>",
      "closable":false,
      "excludeUrls": [
        "\\/$"
      ]
    }
  }
}

Options

  • html: modal content html string.
  • closable: modal can't be close?
  • excludeUrls: page url list should not show modal in RegExp.

/gitbook-plugin-modal/

    Package Sidebar

    Install

    npm i gitbook-plugin-modal

    Weekly Downloads

    1

    Version

    0.0.2

    License

    ISC

    Last publish

    Collaborators

    • gwuhaolin