#!/bin/bash set -xe if sed --version 2>/dev/null | grep -q GNU; then SED_INPLACE="sed -i" else SED_INPLACE="sed -i ''" fi $SED_INPLACE 's/}}//' $file $SED_INPLACE 's/{{< version >}}/1.19.2/g' $file $SED_INPLACE 's/{{< relref "doc/\/docs/g' $file $SED_INPLACE 's/" >}}//g' $file $SED_INPLACE 's/\*\*Table of Contents\*\*//' $file $SED_INPLACE 's/weight:/sidebar_position:/g' $file #sed -i 's/^slug:.*//' $file done $SED_INPLACE 's/