@@ -13,22 +13,22 @@ cd $WRKDIR
1313find documentation/generator/pages -name " *.markdown" | xargs rm
1414cp ` find documentation/generator/pages -name " *.*" ` documentation/generator/_site
1515if [ ! -d documentation/generator/_site ]; then
16- exit 1
16+ exit 1
1717fi
1818
1919OUTPUT=$WRKDIR /output
2020mkdir -p $OUTPUT
2121
22- # replace absolute style and script links with relative ones. This way, no
22+ # Replace absolute style and script links with relative ones. This way, no
2323# matter how docs will be served (on https://docs.cfengine.com/docs/3.18/ or
2424# http://buildcache.cfengine.com/packages/build-documentation-pr/jenkins-pr-pipeline-7204/output/_site/),
2525# these links will still be valid.
2626cd documentation/generator/_site
2727for source in * .html;
2828do
29- sed -i " s/<base href\([^>]*\)>/<!-- base href\1 -->/
30- s/<link href='.*assets\(.*\)>/<link href='assets\1>/
31- s/<script src='.*assets\(.*\)>/<script src='assets\1>/" $source
29+ sed -i " s/<base href\([^>]*\)>/<!-- base href\1 -->/
30+ s/<link href='.*assets\(.*\)>/<link href='assets\1>/
31+ s/<script src='.*assets\(.*\)>/<script src='assets\1>/" $source
3232done
3333cd -
3434
@@ -43,10 +43,10 @@ cd documentation/generator/_site
4343# in the downloaded archive
4444for source in * .html;
4545do
46- sed -i " s/<select/<!-- select/
47- s/<\/select>/<\/select -->/
48- s/<form/<!-- from/
49- s/<\/form>/<\/form -->/" $source
46+ sed -i " s/<select/<!-- select/
47+ s/<\/select>/<\/select -->/
48+ s/<form/<!-- from/
49+ s/<\/form>/<\/form -->/" $source
5050done
5151cd ..
5252tar -czf $OUTPUT /$ARCHIVE_FILE .tar.gz _site
0 commit comments