Open kohheepeace opened 4 years ago
[My flow of using docusaurus]
yarn build
command written in package.json
So, in my package.json
"scripts": {
"start": "docusaurus start",
"build": "docusaurus build && yarn pdf-from-build",
"pdf-from-build": "npx docusaurus-pdf from-build build/ docs/flutter-crud2a/introduction --output-file build/img/docusaurus.pdf",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy"
},
Important part of scripts.
npx docusaurus-pdf from-build build/ docs/flutter-crud2a/introduction --output-file build/img/docusaurus.pdf
So, you can access generated PDF at https://www.yourdomain.com/img/docusaurus.pdf
Add document in README.
Ref: https://github.com/KohheePeace/docusaurus-pdf/pull/7#issuecomment-619364873