feat: add plugin 'docsify-to-pdf-converter'(#185)

This commit is contained in:
yanglbme 2020-08-30 15:21:27 +08:00
parent 5f000b4180
commit 7c1548e550
4 changed files with 75 additions and 1 deletions

7
.docsifytopdfrc.js Normal file
View File

@ -0,0 +1,7 @@
module.exports = {
contents: [ "summary.md" ],
pathToPublic: "pdf/advanced-java.pdf",
pdfOptions: "<options for puppeteer.pdf()>",
removeTemp: true,
emulateMedia: "screen",
}

44
.gitignore vendored
View File

@ -1,2 +1,44 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
# misc
.DS_Store
.vscode
.env.local
.env.development.local
.env.test.local
.env.production.local
.vscode
npm-debug.log*
yarn-debug.log*
yarn-error.log*
dist
package-lock.json
lib
node_modules
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

25
package.json Normal file
View File

@ -0,0 +1,25 @@
{
"scripts": {
"convert": "docsify-pdf-converter"
},
"name": "advanced-java",
"description": "互联网 Java 工程师进阶知识完全扫盲@doocshttps://github.com/doocs/advanced-java",
"version": "1.0.0",
"main": ".docsifytopdfrc.js",
"directories": {
"doc": "docs"
},
"repository": {
"type": "git",
"url": "https://github.com/doocs/advanced-java.git"
},
"author": "yanglbme",
"license": "CC-BY-SA-4.0",
"bugs": {
"url": "https://github.com/doocs/advanced-java/issues"
},
"homepage": "https://github.com/doocs/advanced-java#readme",
"devDependencies": {
"docsify-pdf-converter": "^2.0.7"
}
}

BIN
pdf/advanced-java.pdf Normal file

Binary file not shown.