-
Notifications
You must be signed in to change notification settings - Fork 0
/
process-labs.sh
executable file
·46 lines (37 loc) · 1.22 KB
/
process-labs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env bash
echo "process-labs.sh"
pwd
ls -a
echo "root path"
ls -a /
echo "parent path"
ls -a ../
echo "Process markdown files"
for f in *.md; do
$GOPATH/bin/claat export $f
done
#*************************************************
# Modify the site folder below here.
#*************************************************
echo "Modifying the site"
# Copy logo
cp ./assets/logo.png ../app/images/logo.png
# Copy icons
cp ./assets/core_platform.png ../app/images/icons/core_platform.png
cp ./assets/terraform.png ../app/images/icons/terraform.png
cp ./assets/modules_laboratory.png ../app/images/icons/modules_laboratory.png
# Append css
cat ./assets/extra_styles.css >> ../app/styles/_categories.scss
# Fix landing page text
sed -i 's/Welcome to Codelabs!/Welcome to Chrislabs!/g' ../app/views/default/index.html
sed -i 's/Codelabs provide a guided/Chrislabs provide a guided/g' ../app/views/default/index.html
#*************************************************
# Modify the site folder above here
#*************************************************
# Build the site
echo "Building the site"
cd ../
gulp dist --codelabs-dir=codelabs
# Copy output to mounted volume.
echo "Copying to the distribution folder"
cp -RL dist/* /output