Sfoglia il codice sorgente

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

Scott Lahteine 6 anni fa
parent
commit
c4734b947b
1 ha cambiato i file con 7 aggiunte e 4 eliminazioni
  1. 7
    4
      buildroot/share/git/mfdoc

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

@@ -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…
Annulla
Salva