Generate API documentation on build