kohheepeace / mr-pdf

Generate PDF for document website.
https://www.npmjs.com/package/mr-pdf
MIT License
125 stars 41 forks source link

no effect? #68

Closed chaofanx closed 1 year ago

chaofanx commented 1 year ago

first, i use this command to install it:

sudo npm i -g mr-pdf

then, i execute this command:

mr-pdf --initialDocURLs="http://localhost:3000/docs/intro" --contentSelector="article" --paginationSelector="pagination-nav__link--next" --excludeSelectors=".theme-doc-breadcrumbs,a.theme-edit-this-page" --coverImage="https://docusaurus.io/img/docusaurus.png" --coverTitle="Docusaurus v2"

But after a few seconds, the command returns directly without any information or errors

docusaurus version is 2.4.0

I am sure this doc url is valid and accessible and this folder is writable and readable

In fact I also tried it with npx mr-pdf xxxx and got the same response

My node version is v18.15.0 and npm version is 9.5.0

jean-humann commented 1 year ago

I have created a new repo and merged all usefull PRs here, feel free to contribute