mirror of
https://github.com/danog/gojekyll.git
synced 2025-01-23 04:51:15 +01:00
Suggest --watch
This commit is contained in:
parent
5e5aa3acb7
commit
306b657a1e
@ -45,10 +45,12 @@ func buildCommand(site *site.Site) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
logger.label("Auto-regeneration", "enabled for %q\n", site.SourceDir())
|
||||
logger.label("Auto-regeneration:", "enabled for %q\n", site.SourceDir())
|
||||
for event := range events {
|
||||
fmt.Print(event)
|
||||
}
|
||||
} else {
|
||||
logger.label("Auto-regeneration:", "disabled. Use --watch to enable.")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ func loadSite(source string, flags config.Flags) (*site.Site, error) {
|
||||
} else {
|
||||
logger.label(configurationFileLabel, "none")
|
||||
}
|
||||
logger.label("Source:", site.SourceDir())
|
||||
logger.path("Source:", site.SourceDir())
|
||||
err = site.Read()
|
||||
return site, err
|
||||
}
|
||||
|
@ -66,7 +66,6 @@ func (s *Site) Reloaded(paths []string) (*Site, error) {
|
||||
|
||||
func (s *Site) requiresFullReload(paths []string) bool {
|
||||
for _, path := range paths {
|
||||
fmt.Println("test", path)
|
||||
switch {
|
||||
case path == "_config.yml":
|
||||
return true
|
||||
|
Loading…
x
Reference in New Issue
Block a user