Updated the generate_doc.sh file to remove the doc/ dir before generating the html.