Update doc script

Redirection works for http://kompose.io/docs/conversion/ but not for
http://kompose.io/docs/conversion.md which is what I originally
intended.

This PR updates the script to redirect all `.md` doc links.
This commit is contained in:
Charlie Drage 2017-07-17 10:42:10 -04:00
parent 796313f626
commit df9e0340af

View File

@ -65,7 +65,7 @@ for filename in *.md; do
jekyll="---
layout: default
permalink: /$name/
redirect_from: \"/docs/$name/\"
redirect_from: \"/docs/$name.md\"
---
"
echo -e "$jekyll\n$(cat $filename)" > $filename