Log the commands run during doc generation

Makes it easier to pinpoint what command failed as well as
the exact command run.