Add a task to generate doc