diff --git a/internal/render/html.go b/internal/render/html.go
index 09e614d..de961dc 100644
--- a/internal/render/html.go
+++ b/internal/render/html.go
@@ -59,9 +59,7 @@ func html(output string, live bool, errCh chan error, wg *sync.WaitGroup) {
return
}
- if live {
- fmt.Printf("%s -> %s\n", filepath.Join("templates", fileInfo.Name()), outputFilename)
- }
+ fmt.Printf("%s -> %s\n", filepath.Join("templates", fileInfo.Name()), outputFilename)
tpl, err := ace.Load("", filepath.Join("templates", basename), aceOpts)
if err != nil {
diff --git a/internal/render/narrative.go b/internal/render/narrative.go
index b8a4f5c..f72bd90 100644
--- a/internal/render/narrative.go
+++ b/internal/render/narrative.go
@@ -49,14 +49,6 @@ func renderNarrativeToDisk(wg *sync.WaitGroup, errOutputCh chan error, data *ren
go func(p *model.Narrative) {
defer wg.Done()
- if live {
- rel, err := filepath.Rel(config.ProjectRoot(), p.FullPath)
- if err != nil {
- rel = p.FullPath
- }
- fmt.Printf("%s -> %s\n", rel, filepath.Join("output", p.OutputFilename))
- }
-
outputFilename := p.OutputFilename
// save preprocessed markdown
err = preprocessNarrative(data, p, filepath.Join(".", "output", outputFilename+".md"))
@@ -112,6 +104,13 @@ func renderNarrativeToDisk(wg *sync.WaitGroup, errOutputCh chan error, data *ren
errOutputCh <- err
return
}
+
+ rel, err := filepath.Rel(config.ProjectRoot(), p.FullPath)
+ if err != nil {
+ rel = p.FullPath
+ }
+ fmt.Printf("%s -> %s\n", rel, filepath.Join("output", p.OutputFilename))
+
}(narrative)
}
diff --git a/internal/render/policy.go b/internal/render/policy.go
index 8359a8b..ea3a411 100644
--- a/internal/render/policy.go
+++ b/internal/render/policy.go
@@ -49,14 +49,6 @@ func renderPolicyToDisk(wg *sync.WaitGroup, errOutputCh chan error, data *render
go func(p *model.Policy) {
defer wg.Done()
- if live {
- rel, err := filepath.Rel(config.ProjectRoot(), p.FullPath)
- if err != nil {
- rel = p.FullPath
- }
- fmt.Printf("%s -> %s\n", rel, filepath.Join("output", p.OutputFilename))
- }
-
outputFilename := p.OutputFilename
// save preprocessed markdown
err = preprocessPolicy(data, p, filepath.Join(".", "output", outputFilename+".md"))
@@ -110,6 +102,12 @@ func renderPolicyToDisk(wg *sync.WaitGroup, errOutputCh chan error, data *render
errOutputCh <- err
return
}
+
+ rel, err := filepath.Rel(config.ProjectRoot(), p.FullPath)
+ if err != nil {
+ rel = p.FullPath
+ }
+ fmt.Printf("%s -> %s\n", rel, filepath.Join("output", p.OutputFilename))
}(policy)
}