Improve index and relative link replacement

This commit is contained in:
David Young
2020-06-03 14:42:58 +12:00
parent a1661cb17e
commit 324d9c1540
2 changed files with 11 additions and 23 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ do
sed -i "s/\`\`\`\`/\`\`\`/g" $file
# Can't use relative paths in a book, so make all paths static
sed -i 's/(\//https:\/\/geek-cookbook.funkypenguin.co.nz\//g' $file
sed -i 's/](\//\](https:\/\/geek-cookbook.funkypenguin.co.nz\//g' $file
# strip emojis
tr -cd '\11\12\15\40-\176' < $file > $file-clean