minor: fixing operation sequence for pdf builds and adding dependency to reduce sitemap related errors