tree: a27e2fe766e9e4c99863a171a1552f1e9c9f25f3 [path history] [tgz]
  1. book/
  2. .npmignore
  3. index.js
  4. LICENSE
  5. package.json
  6. README.md
node_modules/gitbook-plugin-editlink/README.md

gitbook-plugin-editlink

GitBook Plugin to add "Edit this page" link on every page. Link target will be that page's source file on Github or any repo.

{
  "plugins": ["editlink"],
  "pluginsConfig": {
    "editlink": {
      "base": "https://github.com/zhaoda/webpack-handbook/edit/master/content",
      "label": "Edit This Page",
      "multilingual": false
    }
  }
}

If you are using multiple languages in gitbook, set label like this:

{
    "label": {
        "en": "Edit This Page",
        "zh-cn": "编辑本页"
    }
}

Then run gitbook install to download and install the plugin.