ulivz / vuepress-plugin-export

Export your VuePress site to a PDF file
MIT License
90 stars 17 forks source link

RP: Allow to export multiple output files #6

Open chunksnbits opened 5 years ago

chunksnbits commented 5 years ago

Proposal: Allow to generate multiple output targets in an export

Use-Case: Generate exports in multiple languages, e.g.: my-vuepress.en.pdf my-vuepress.de.pdf

API:

['vuepress-plugin-export', Config || Config[]]

with config options:

filter: (location) =>boolean  // filter pages to include in this output
dest: () => string  // (path)-name for output file
sorter: (page) => number  // sort pages included in export

I implemented this in a fork, butt think you may find it useful as well.

Note: I initially ran into some trouble with rendering and updated dependencies for this project. I decided to keep those changes in here, since they don't include any breaking changes, but if you prefer I can put them into a separate request.

FrankFan commented 4 years ago

同需要这个功能,ulivz 赶紧合并这个PR啊