Package to turn Diplodoc projects into PDFs.
npm i -g @diplodoc/pdf-generator
Run @diplodoc/cli
command. This will create an output folder with a single page file for each Table of Contents (ToC) file.
npx -- @diplodoc/cli@latest -i ./docs -o ./docs-output --single-page
Run the @diplodoc/pdf-generator
command. This will create PDF files right next to the single page ones.
npx -- @diplodoc/pdf-generator@latest -i ./docs-output
- node >= 18.x
- graphicsmagick
- ghostscript
Follow this guide to install the required dependencies.
npm run test