github.com/tompao/docker@v1.9.1/docs/touch-up.sh (about) 1 #!/bin/bash -e 2 3 4 # Sed to process GitHub Markdown 5 # 1-2 Remove comment code from metadata block 6 # 7 for i in ls -l /docs/content/* 8 do # Line breaks are important 9 if [ -d $i ] # Spaces are important 10 then 11 y=${i##*/} 12 find $i -type f -name "*.md" -exec sed -i.old \ 13 -e '/^<!.*metadata]>/g' \ 14 -e '/^<!.*end-metadata.*>/g' {} \; 15 fi 16 done 17 18 19 20