add common script for publishing documentation to gh-pages