Skip to content

Commit

Permalink
docsify to pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
jlooper committed Jun 17, 2021
1 parent fc952e5 commit 6234c76
Show file tree
Hide file tree
Showing 6 changed files with 2,292 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/_sidebar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Introduction
- [Introduction to machine learning](../1-Introduction/1-intro-to-ML/README.md)
- [History of machine learning](../1-Introduction/2-history-of-ML/README.md)
- [ML and Fairness](../1-Introduction/3-fairness/README.md)
7 changes: 7 additions & 0 deletions docsifytopdf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
contents: ['docs/_sidebar.md'], // array of "table of contents" files path
pathToPublic: 'pdf/readme.pdf', // path where pdf will stored
pdfOptions: '<options for puppeteer.pdf()>', // reference: https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagepdfoptions
removeTemp: true, // remove generated .md and .html or not
emulateMedia: 'screen', // mediaType, emulating by puppeteer for rendering pdf, 'print' by default (reference: https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pageemulatemediamediatype)
};
Loading

0 comments on commit 6234c76

Please sign in to comment.