This is a Gitbook plugin for adding a download pdf link in the front-facing toolbar.
npm install gitbook-plugin-download-pdfGitBook Plugin to add \"Download PDF\" link on every page.
``js
{
"plugins": ["downloadpdf"],
"pluginsConfig": {
"downloadpdf": {
"base": "https://github.com/zhaoda/webpack-handbook/edit/master/content",
"label": "Download PDF",
"multilingual": false
}
}
}
`
If you are using multiple languages in gitbook, set label like this:
`js`
{
"label": {
"en": "Download PDF",
"zh-cn": "编辑本页"
}
}
Then run gitbook install` to download and install the plugin.