Adds doc subtask to build tasks.