ddfreyne changed the topic of #nanoc to: 3.6.8 (mar 22th) | 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
alerante has quit [Remote host closed the connection]
alerante has joined #nanoc
alerante has quit [Remote host closed the connection]
Boom_Farmer has left #nanoc ["whee!"]
alerante has joined #nanoc
alerante has quit [Ping timeout: 265 seconds]
Boom_Farmer has joined #nanoc
skroon has quit [Ping timeout: 255 seconds]
skroon has joined #nanoc
alerante has joined #nanoc
alerante has quit [Ping timeout: 240 seconds]
relix has joined #nanoc
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #nanoc
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jutah has joined #nanoc
VitamineD1 is now known as VitamineD
VitamineD has quit [Quit: Leaving.]
VitamineD has joined #nanoc
VitamineD has quit [Client Quit]
VitamineD has joined #nanoc
alerante has joined #nanoc
VitamineD has quit [Client Quit]
alerante has quit [Ping timeout: 264 seconds]
alerante has joined #nanoc
jugglinmike has joined #nanoc
<tom[]> i'm using grunt to copy nanoc output somewhere. and i want to use guard to watch and nanoc compile. is it ok to grunt-watch the nanoc output dir? or should i preferably kick off a grunt-copy from nanoc after a compilation in which something changed?
bensonshaji has joined #nanoc
VitamineD has joined #nanoc
<bensonshaji> Hi, Can anybody help me? https://groups.google.com/forum/#!topic/nanoc/X4Ti7VYkX1I
<VitamineD> bensonshaji: don't ask to ask, just ask (and stay around)
<VitamineD> I'm busy though, but there are other regulars who will answer
<bensonshaji> VitamineD, I have posted a topic in google groups. Should I post it here again?
<bensonshaji> Ok.... Here is the question: How can I paginate each category page?
<bensonshaji> I have a function :
<bensonshaji> def posts_with_category category
<bensonshaji> posts.select {|post| post[:categories] && post[:categories].include?(category)}
<bensonshaji> And I would like to paginate these category pages as "category/topic/1/" "/2/" .... etc
<bensonshaji> end
<bensonshaji> How do i do it?
<guardian> do you commit your Gemfile.lock for nanoc projects?
<tom[]> guardian: i do. but i don't know if it's a good idea
<tom[]> thinking about it, if you run bundle manually when needed rather than as part of your automatic build, then i guess it makes sense to commit it
achal has joined #nanoc
bensonshaji has quit [Quit: Leaving]
bensonshaji has joined #nanoc
<bensonshaji> How can I paginate each category page?
<guardian> there's http://nanoc.ws/docs/guides/paginating-articles/ you can build from
<guardian> bobthecow: I think we once discussed about the best way to load settings from a file that's not nanoc.yaml. Does it ring a bell?
alerante has quit [Remote host closed the connection]
skroon has quit [Ping timeout: 255 seconds]
ics has quit [Ping timeout: 268 seconds]
alerante has joined #nanoc
ics has joined #nanoc
alerante has quit [Ping timeout: 240 seconds]
ics has quit [Ping timeout: 264 seconds]
ics has joined #nanoc
bensonshaji has quit [Quit: Leaving]
VitamineD1 has joined #nanoc
skroon has joined #nanoc
VitamineD has quit [Quit: WeeChat 0.3.8]
VitamineD1 is now known as VitamineD
alerante has joined #nanoc
<ddfreyne> guardian: I commit my Gemfile.lock
<ddfreyne> tom[]: watching output/ and copying from there i fine
<tom[]> ddfreyne: done. thanks
<guardian> ddfreyne: ok
<guardian> that's what I settled on as well
alerante has quit [Ping timeout: 265 seconds]
<ddfreyne> guardian: That way, other people can check ou tyour project, run bundle install, and not worry about dependency problems
<ddfreyne> (Or wrong versions that have incorrect results etc)
<guardian> ddfreyne: what are my options to have settings loaded globally outside of nanoc.yaml?
<guardian> ddfreyne: a class that loads my own .yaml file?
alerante has joined #nanoc
<ddfreyne> guardian: I'd suggest using a preprocessor block that loads it and merges it with @config
<guardian> ah yeah that's an option I also considered
<guardian> ddfreyne: do you remember my idea of building the documentation of several products using the same nanoc "framework". I had to that project aside for a while, but here is the sum of what I discussed with bobthecow: http://pastebin.com/Xk8CZvb0
<guardian> ddfreyne: each product has a nanoc site, and there's a _factory submodule which is the framework
<guardian> ddfreyne: and now I'm experimenting with the idea so that Rules includes _factory/Rules
<guardian> ddfreyne: in product/lib/whatever.rb I would populate helpers from _factory/lib/**.rb the same way nanoc compiler does
<guardian> ddfreyne: this would permit each product to customize things a bit, yet I still need to brush out details about the preprocess phase and the fact that content and layouts can be potentially in both product/content product/layout or _factory/content/ or _factory/layout
VitamineD has quit [Quit: Leaving.]
VitamineD has joined #nanoc
<bobthecow> tom[] guardian: rule of thumb with lockfiles is never commit them for libraries, always commit them for projects.
<guardian> bobthecow: o/
<bobthecow> hey
<bobthecow> did you sort your config thing?
<guardian> I'm working on it
<guardian> bobthecow: I like your idea of each product having its own nanoc site, deferring defaults to a _factory submodule
<guardian> bobthecow: I'm in the process of plumbing things together
achal has quit [Quit: Connection closed for inactivity]
<guardian> bobthecow: it would be easier if the filesystem_unified data source had a configurable prefix
<guardian> bobthecow: I would add another filesystem_unified that populates items from _factory/content and layouts from _factory/layout
<guardian> ddfreyne: would it be acceptable to have content_prefix and layouts_prefix as part of filesystem's configuration? if I submit a patch that does so, would you accept it?
<guardian> bobthecow: also I'm going to keep compass along with bootstrap-sass because it brings nifty tools like inline-image() one could use to override/customize bootstrap styles
skroon has quit [Ping timeout: 252 seconds]
<ddfreyne> guardian: Such a patch is already in nanoc 3.7
irsol has quit [Ping timeout: 265 seconds]
<ddfreyne> guardian: One problem with loading lib/ code from elsewhere is that it may trip up the outdatedness check
<ddfreyne> guardian: if you have a data source that loads items/layouts from elsewhere, that is fine
<ddfreyne> Hmmm...
<ddfreyne> nanoc 3.7 does not have a configurable name, interesting.
relix has joined #nanoc
irsol has joined #nanoc
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alerante has quit [Remote host closed the connection]
alerante has joined #nanoc
alerante has quit [Ping timeout: 246 seconds]