Browse Source

Have 'mfdoc' open the local site when it's ready

Scott Lahteine 6 years ago
parent
commit
c4734b947b
1 changed files with 7 additions and 4 deletions
  1. 7
    4
      buildroot/share/git/mfdoc

+ 7
- 4
buildroot/share/git/mfdoc View File

29
 
29
 
30
 echo "Previewing MarlinDocumentation..."
30
 echo "Previewing MarlinDocumentation..."
31
 
31
 
32
-# wait to open the url for about 8s
33
-( sleep 45; opensite ) &
34
-
35
-bundle exec jekyll serve --watch --incremental
32
+bundle exec jekyll serve --watch --incremental | {
33
+  while IFS= read -r line
34
+  do
35
+    [[ $line =~ "Server running" ]] && opensite
36
+    echo "$line"
37
+  done
38
+}

Loading…
Cancel
Save