updating the API docs when publishing