Update a task to generate documents.