mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-16 11:44:58 +02:00
pdf copy
This commit is contained in:
9
docsifytopdf.js
Normal file
9
docsifytopdf.js
Normal file
@@ -0,0 +1,9 @@
|
||||
module.exports = {
|
||||
contents: ['docs/_sidebar.md'], // array of "table of contents" files path
|
||||
pathToPublic: 'pdf/readme.pdf', // path where pdf will stored
|
||||
pdfOptions: {
|
||||
margin: { top: '100px', bottom: '100px' }
|
||||
}, // reference: https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagepdfoptions
|
||||
removeTemp: true, // remove generated .md and .html or not
|
||||
emulateMedia: 'print', // mediaType, emulating by puppeteer for rendering pdf, 'print' by default (reference: https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pageemulatemediamediatype)
|
||||
};
|
Reference in New Issue
Block a user