Add doc generation script for mac
Merge branch 'WIP'