add script to generate API docs