Have 'mfdoc' open the local site when it's ready
This commit is contained in:
		@@ -29,7 +29,10 @@ opensite() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
echo "Previewing MarlinDocumentation..."
 | 
					echo "Previewing MarlinDocumentation..."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# wait to open the url for about 8s
 | 
					bundle exec jekyll serve --watch --incremental | {
 | 
				
			||||||
( sleep 45; opensite ) &
 | 
					  while IFS= read -r line
 | 
				
			||||||
 | 
					  do
 | 
				
			||||||
bundle exec jekyll serve --watch --incremental
 | 
					    [[ $line =~ "Server running" ]] && opensite
 | 
				
			||||||
 | 
					    echo "$line"
 | 
				
			||||||
 | 
					  done
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user