Skip to content

Commit

Permalink
feat: add plugin 'docsify-to-pdf-converter'(#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme committed Aug 30, 2020
1 parent 5f000b4 commit 7c1548e
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .docsifytopdfrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
contents: [ "summary.md" ],
pathToPublic: "pdf/advanced-java.pdf",
pdfOptions: "<options for puppeteer.pdf()>",
removeTemp: true,
emulateMedia: "screen",
}
44 changes: 43 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -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 changes: 25 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"scripts": {
"convert": "docsify-pdf-converter"
},
"name": "advanced-java",
"description": "互联网 Java 工程师进阶知识完全扫盲@doocs,https://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"
}
}
Binary file added pdf/advanced-java.pdf
Binary file not shown.

0 comments on commit 7c1548e

Please sign in to comment.