ddfreyne changed the topic of #nanoc to: 3.6.7 (dec 9th) | web http://nanoc.ws/ | repo http://bit.ly/XE6e3G | issues http://bit.ly/VfXaSV | forum http://ho.io/n-discuss | irclog http://irclog.whitequark.org/nanoc
louquillio__ has joined #nanoc
louquillio__ has quit [Remote host closed the connection]
louquillio__ has joined #nanoc
louquillio__ has quit [Remote host closed the connection]
bladeraven has quit [Remote host closed the connection]
harbiyeli has joined #nanoc
jugglinmike has quit [Quit: Leaving.]
harbiyeli has quit [Ping timeout: 265 seconds]
VitamineD1 is now known as VitamineD
VitamineD has quit [Quit: Leaving.]
relix has joined #nanoc
tlevine has joined #nanoc
VitamineD has joined #nanoc
<tom[]> can i name data sources?
<ddfreyne> tom[]: They only have a typo
<ddfreyne> type
<ddfreyne> hah
<ddfreyne> So no
<ddfreyne> tom[]: What would you need it for?
<tom[]> dunno
<tom[]> can't remember
<tom[]> something odd going with my setup for a static source
<tom[]> only 5 of the files in the source are being copied
<tom[]> looking at -d output now
<tom[]> nanoc appears to just not visit most of the files in the static data source
<tom[]> it visits the same 5 items many times
* tom[] baffled
jugglinmike has joined #nanoc
jaspervdj has quit [Ping timeout: 265 seconds]
jaspervdj has joined #nanoc
<tom[]> i don't know what to try next
<bobthecow> tom[]: are you sure you routed all your static data source items?
<bobthecow> remember that you route them with extensions.
<tom[]> i got it sorted
<tom[]> found the undocumented :prifix config item
<tom[]> i misunderstood the items_root
<bobthecow> ahh. yeah.
<bobthecow> i ran into that yesterday with someone else.
<ddfreyne> Yeah, it is confusing. I shouldn't have based myself off unix mount paths when I implemented that idea
<ddfreyne> tom[]: assigning names to data sources would be useful to identify where information comes from and how to handle it, I guess
<tom[]> i'm not sure how it would be better than comments
<ddfreyne> tom[]: if @item.data_source.name == "cli" ; ... ; end
<ddfreyne> would be nice to have
<tom[]> true
<tom[]> especially if you're getting fancy in custom data sources
VitamineD has quit [Ping timeout: 240 seconds]
<bobthecow> tom[]: if you're doing fancy things with custom data sources there's nothing stopping you from implementing name in them :)
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #nanoc
relix has quit [Client Quit]
relix has joined #nanoc
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
bbs_ has joined #nanoc
<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...
<bobthecow> i believe nanoc.ws has even more.
<bobthecow> that's probably my favorite data source so far :)
<bbs_> nifty. i've been very impressed with nanoc's extensibility
<bobthecow> yeah, nanoc.ws has a data source that parses yardoc and creates items out of it.
VitamineD has joined #nanoc
<bbs_> yeah the more i look at it the more it's just going to be best to make a proper data source. esp since doing so looks straightfoward
<bobthecow> mind if i ask what your data is?
<bbs_> actually this is pretty boring, porting over some yml data that was backing a Sinatra site, so just some custom formatted page data basically
bbs_ has quit [Quit: Page closed]
<bobthecow> ahh, gotcha.