Content and (PDF-) generators for our portfolio (digital & print)
npm install- Place content inside
contentdirectory (markdown with yaml front matter) - Define build targets in
targets.js. Keys of the object are valid values for thetargetargument to the generate command - Create templates (in
templatesdirectory) - Generate html output:
npm run generate <target>e.g.npm run generate portfolio - Generate html and pdf output:
npm run generate <target> pdfe.g.npm run generate portfolio pdf
If you should receive this error:
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memoryYou have to allocate more memory to node.js. You can do this by typing
export NODE_OPTIONS=--max_old_space_size=4096This project uses handlebars.js for templating. Please refer to the Language Guide on how to write handlebars templates.
The markdown parser used in this project is called markdown-it. It implements the CommonMark standard plus some extensions. Please refer to the CommonMark Spec for valid syntax.