<bbs_>
hey folks. is there a way to force nanoc to recompile now that the --force flag has been deprecated?
<bobthecow>
bbs_: delete the contents of tmp/
jugglinmike has quit [Quit: Leaving.]
<bobthecow>
having to do that is a sign that you've got something wrong with your site, btw.
<bbs_>
heh. it's because i have data files that affect the output but are not individual content items per se
<bobthecow>
yep. that would be what's wrong.
<bobthecow>
make 'em items.
<bbs_>
2 arguments against doing that. A) having a mess of individual files is less manageable than a single data file, B) it's easier to build things like a nav or listing parital based on a full data file
<bobthecow>
1 argument for it: you don't have to make them individual files :)
<bobthecow>
that stores all my github projects in a single github_items.yaml file.
<bobthecow>
reads them out, and puts makes items out of them.
<bobthecow>
in my case i've got `sync` defined to actually populate the yaml file, since it's just a duplication of github data.
<bobthecow>
but for you, you could have a much simpler data source.
<bbs_>
yeah that's what i'm doing with this sucker. wrote a preprocess method to generate multiple items from a single data file
<bobthecow>
make it an actual data source.
<bobthecow>
like this.
<bbs_>
oooh, ok ok i think i see what you're saying. so make the directory that contains my data file a data source?
<bobthecow>
it doesn't have to be a directory even.
<bobthecow>
look at that github data source...
<bobthecow>
it's just reading out of a single yaml file in my project directory.
<bobthecow>
and generates 121 items out of that file.
<bobthecow>
you *can* do that in a preprocess block, but a proper data source is cleaner...
<bobthecow>
if you just want to fix your preprocess block, the problem is likely that you're not setting the mtime on your items created.
<bobthecow>
so they're never being treated as "changed"
<bobthecow>
i'd set 'em all to the mtime of the data file.
relix has joined #nanoc
relix has quit [Client Quit]
<bbs_>
ah, i see, yeah i would bet mtime is my issue. thanks for the options, did not know what you could do with data sources (besides static). will probably opt for the quick fix now and the actual data source later
<bobthecow>
data sources are pretty rad. i've got several on my site...