kohheepeace / mr-pdf

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

[bug] only capture part of content for Docusaurus 2.0.0-rc1 #61

Closed JalinWang closed 1 year ago

JalinWang commented 2 years ago

Test command:

npx mr-pdf --initialDocURLs="https://docusaurus.io/docs" --contentSelector="article" --paginationSelector=".pagination-nav__item--next > a" --excludeSelectors=".margin-vert--xl a,[class^='tocCollapsible'],.breadcrumbs"

Screenshot image

heywalter commented 1 year ago

I've got the same issue, is there another way to solve the problem? Thanks.

heywalter commented 1 year ago

@JalinWang Finally, I've figured out the solution(Docusaurus v2.2). Maybe you should try the command below.

npx mr-pdf --initialDocURLs="your domain" --contentSelector="article" --paginationSelector=".pagination-nav__link--next" --excludeSelectors=".margin-vert--xl a" --coverTitle="Docusaurus v2"

btw, remember to replace the domain, good luck.

kohheepeace commented 1 year ago

Close the issue according to the @heywalter comment solution. Thanks!