Add api-doc gen script and update gitignore to ignore /doc/