浏览代码

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
 
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
+}

正在加载...
取消
保存