瀏覽代碼

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

Scott Lahteine 6 年之前
父節點
當前提交
c4734b947b
共有 1 個文件被更改,包括 7 次插入4 次删除
  1. 7
    4
      buildroot/share/git/mfdoc

+ 7
- 4
buildroot/share/git/mfdoc 查看文件

@@ -29,7 +29,10 @@ opensite() {
29 29
 
30 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…
取消
儲存