Have 'mfdoc' open the local site when it's ready
This commit is contained in:
parent
24c5e57bb6
commit
c4734b947b
1 changed files with 7 additions and 4 deletions
|
@ -29,7 +29,10 @@ opensite() {
|
|||
|
||||
echo "Previewing MarlinDocumentation..."
|
||||
|
||||
# wait to open the url for about 8s
|
||||
( sleep 45; opensite ) &
|
||||
|
||||
bundle exec jekyll serve --watch --incremental
|
||||
bundle exec jekyll serve --watch --incremental | {
|
||||
while IFS= read -r line
|
||||
do
|
||||
[[ $line =~ "Server running" ]] && opensite
|
||||
echo "$line"
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue