Add a script to generate the API docs.