github.com/tenywen/fabric@v1.0.0-beta.0.20170620030522-a5b1ed380643/docs/source/mdtorst.sh (about) 1 2 FILES=*.md 3 for f in $FILES 4 do 5 # extension="${f##*.}" 6 filename="${f%.*}" 7 echo "Converting $f to $filename.rst" 8 `pandoc $f -t rst -o $filename.rst` 9 # uncomment this line to delete the source file. 10 # rm $f 11 done