Add doc generation script for mac