From f33745701ec53d547b0baf17c665a27ad658c4ea Mon Sep 17 00:00:00 2001 From: Charlie Drage Date: Mon, 10 Jul 2017 15:13:53 -0400 Subject: [PATCH] Fix redirection site issues Fixes the issues in regards to rediction. For example, supplying `/docs/conversion` within the user guide the link will appear as a 404. Adding this allows redirection from `/docs/conversion` to `/conversion`. --- script/sync-docs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/script/sync-docs.sh b/script/sync-docs.sh index 98411cce..215c5b19 100755 --- a/script/sync-docs.sh +++ b/script/sync-docs.sh @@ -65,6 +65,7 @@ for filename in *.md; do jekyll="--- layout: default permalink: /$name/ +redirect_from: \"/docs/$name/\" --- " echo -e "$jekyll\n$(cat $filename)" > $filename