Only calling pandoc when generating docs.