aboutsummaryrefslogtreecommitdiff
path: root/ciigo.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-02-19 01:19:51 +0700
committerShulhan <ms@kilabit.info>2022-02-19 01:19:51 +0700
commitfdc557949e898f7284a080c75231a438f8f998b5 (patch)
tree49fed4fde810cd0c39fa83103042e0f6fcff1525 /ciigo.go
parent41117b40ee781e56b160902f94e5d57b71ab621c (diff)
downloadciigo-fdc557949e898f7284a080c75231a438f8f998b5.tar.xz
all: fix adoc files not re-converted when template file changes
In commit 06d03f6afe37 we skip converting files if the generated HTML is newer than adoc file. This cause an issue where the template file changes during Watch or Serve, but the HTML files is not regenerated.
Diffstat (limited to 'ciigo.go')
-rw-r--r--ciigo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ciigo.go b/ciigo.go
index 091aa23..a2dece9 100644
--- a/ciigo.go
+++ b/ciigo.go
@@ -69,7 +69,7 @@ func Convert(opts *ConvertOptions) (err error) {
return fmt.Errorf("%s: %w", logp, err)
}
- htmlg.convertFileMarkups(fileMarkups)
+ htmlg.convertFileMarkups(fileMarkups, false)
return nil
}
@@ -112,7 +112,7 @@ func GoEmbed(opts *EmbedOptions) (err error) {
return fmt.Errorf("%s: %w", logp, err)
}
- htmlg.convertFileMarkups(fileMarkups)
+ htmlg.convertFileMarkups(fileMarkups, false)
memfsOpts := &memfs.Options{
Root: opts.Root,