@@ -13,22 +13,22 @@ cd $WRKDIR
13
13
find documentation/generator/pages -name " *.markdown" | xargs rm
14
14
cp ` find documentation/generator/pages -name " *.*" ` documentation/generator/_site
15
15
if [ ! -d documentation/generator/_site ]; then
16
- exit 1
16
+ exit 1
17
17
fi
18
18
19
19
OUTPUT=$WRKDIR /output
20
20
mkdir -p $OUTPUT
21
21
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
23
23
# matter how docs will be served (on https://docs.cfengine.com/docs/3.18/ or
24
24
# http://buildcache.cfengine.com/packages/build-documentation-pr/jenkins-pr-pipeline-7204/output/_site/),
25
25
# these links will still be valid.
26
26
cd documentation/generator/_site
27
27
for source in * .html;
28
28
do
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
32
32
done
33
33
cd -
34
34
@@ -43,10 +43,10 @@ cd documentation/generator/_site
43
43
# in the downloaded archive
44
44
for source in * .html;
45
45
do
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
50
50
done
51
51
cd ..
52
52
tar -czf $OUTPUT /$ARCHIVE_FILE .tar.gz _site
0 commit comments