modified publish_doc.sh