Content and (PDF-) generators for our portfolio (digital & print)
npm install
- Place content inside
content
directory (markdown with yaml front matter) - Define build targets in
targets.js
. Keys of the object are valid values for thetarget
argument to the generate command - Create templates (in
templates
directory) - Generate html output:
npm run generate <target>
e.g.npm run generate portfolio
- Generate html and pdf output:
npm run generate <target> pdf
e.g.npm run generate portfolio pdf
If you should receive this error:
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
You have to allocate more memory to node.js. You can do this by typing
export NODE_OPTIONS=--max_old_space_size=4096
This 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.