- Docker,
- Mac OS X, Linux or Unix system which can run bash script.
Launch the build script with command npm run docs:pdf
. The build result will be put into .deploy/.pdf/out
folder if there are no errors.
To update what should be included in PDF document, go ahead edit ../.vuepress/config.js
ALL_PAGES
property. You can use hideInPdf: true,
switch to hide a certain page from putting into PDF.
Inside the build script, there are several steps:
- Prepare the build temporary folders,
- Generate DITA map from
- Transform original Markdown (.md) files into CommonMark format,
- Run DITA-OT to generate PDF file.