script to regenerate API docs