use ruby script to rebuild the index.md file