This script was implemented in order to facilitate the migration of strongloop/loopback Confluence documentation to Jekyll templates.
Written using Node v4.4.3
, it performs the conversion as a flow of tasks.
npm install
node . {PATH_TO_ORIGINAL_CONTENT} {OUTPUT_PATH}
As many people offered their help on the forum topic, the converter should enable parallel team work.
The approach taken here splits each conversion task to a separate flow step.
The steps in src/global-flow
handle the global tasks in this sequence:
Located under src/content-conversion-flow
.
Each step performs a task on the content and calls the next one.
This flow is executed sequentially once per file:
Reads the original content
Finds the attachment pictures, updates the src
attribute and write the file on the new location
HTML to MD
div.sl-hidden
but as beautified HTMLBuilds the front matter
Writes the converted content
./scripts/watch.sh ./tests/{path-to-test-file}.js