add script write_md to write md file for gh-pages branch