Serving with data files

#1

I believe this is a feature request as AFAIK this is not currently implemented.

I often use Zola with .toml or .json data files (I use it for work to display data as a report in a static site). I have noticed that when using the get_data function that zola serve does rebuild, but does not actually show anything different until the process is restarted entirely. Is it possible to rebuild with any edited data files?

#2

Currently the rebuild does not check for these files as you’ve seen. It is kind of hard to know what to look for as those files can be pretty much anywhere in the tree…

1 Like
#3

That’s fair enough. It is slightly confusing however how it does show that files have changed when data files change. Is that intended behavior?

#4

I guess if the file doesn’t fit any categories, it could reload the whole site?