Move document creation to pelican