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
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_whitelogger_ has joined #nanoc
jaspervdj has joined #nanoc
23LAAZKG7 has joined #nanoc
guardian has joined #nanoc
_br_ has joined #nanoc
smkelly has joined #nanoc
jugglinmike has joined #nanoc
bobthecow has joined #nanoc
Keltia has joined #nanoc
louquillio_ has joined #nanoc
FunkyPenguin has joined #nanoc
Jutah has joined #nanoc
dkm has joined #nanoc
musicmatze has joined #nanoc
koan has joined #nanoc
terinjokes has joined #nanoc
antognolli has joined #nanoc
zi has joined #nanoc
ddfreyne has joined #nanoc
francois2 has joined #nanoc
gregkare has joined #nanoc
Keltia has quit [*.net *.split]
23LAAZKG7 has quit [*.net *.split]
_br_ has quit [*.net *.split]
antognolli has quit [*.net *.split]
louquillio_ has quit [*.net *.split]
zi has quit [*.net *.split]
zi has joined #nanoc
antognolli has joined #nanoc
smkelly has quit [*.net *.split]
FunkyPenguin has quit [*.net *.split]
bobthecow has quit [*.net *.split]
jugglinmike has quit [*.net *.split]
_whitelogger has joined #nanoc
<ddfreyne> utkarsh: That's being improved in nanoc 4.0 too... so you can run it from anywhere.
<ddfreyne> But it's WIP.
Keltia has quit [*.net *.split]
stbuehler has joined #nanoc
gregkare has joined #nanoc
number-six has joined #nanoc
Keltia has joined #nanoc
Keltia has quit [Ping timeout: 267 seconds]
francois2 has quit [Ping timeout: 276 seconds]
gregkare has quit [*.net *.split]
zi has quit [*.net *.split]
jaspervdj has quit [*.net *.split]
forcev has quit [*.net *.split]
kourier_ has quit [*.net *.split]
Guest57452 has quit [*.net *.split]
smkelly has quit [*.net *.split]
bobthecow has quit [*.net *.split]
antognolli has quit [*.net *.split]
terinjokes has quit [*.net *.split]
musicmatze has quit [*.net *.split]
koan has quit [*.net *.split]
dkm has quit [*.net *.split]
utkarsh has quit [*.net *.split]
stbuehler has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
_whitelogger has joined #nanoc
_whitelogger has joined #nanoc
_whitelogger has joined #nanoc
Keltia has quit [*.net *.split]
13WABRVCD has quit [*.net *.split]
smkelly has quit [Ping timeout: 344 seconds]
bobthecow has joined #nanoc
bobthecow has joined #nanoc
bobthecow has quit [Changing host]
smkelly has joined #nanoc
number-six has joined #nanoc
Jutah has joined #nanoc
number-six has quit [Excess Flood]
TobiasFar_ has joined #nanoc
Keltia has joined #nanoc
<utkarsh> Is it possible to force recompilation of all pages from the command line?
smkelly has quit [Ping timeout: 272 seconds]
smkelly has joined #nanoc
smkelly has quit [Ping timeout: 272 seconds]
smkelly_ has joined #nanoc
smkelly_ is now known as smkelly
TobiasFar_ has quit [Ping timeout: 261 seconds]
Keltia has quit [Ping timeout: 261 seconds]
<ddfreyne> utkarsh: You can rm -rf tmp/ and then run nanoc again
<utkarsh> ddfreyne, thank you
bobthecow has quit [Ping timeout: 251 seconds]
bobthecow_ has joined #nanoc
jugglinmike has joined #nanoc
TobiasFar has joined #nanoc
bobthecow__ has joined #nanoc
bobthecow_ has quit [Changing host]
bobthecow_ has joined #nanoc
bobthecow_ has quit [Ping timeout: 272 seconds]
jugglinmike has quit [Ping timeout: 272 seconds]
gregkare has quit [*.net *.split]
alerante has joined #nanoc
gregkare has joined #nanoc
alerante is now known as Guest15740
jugglinmike has joined #nanoc
jugglinmike has quit [*.net *.split]
Guest15740 has quit [Ping timeout: 713 seconds]
jugglinmike has joined #nanoc
alerante has joined #nanoc
alerante is now known as Guest45631
guardian has joined #nanoc
relix has joined #nanoc
uglybandersnatch has joined #nanoc
uglybandersnatch has quit [Remote host closed the connection]
* dkm is having nanoc filter woes
<ddfreyne> dkm: We're here to help!
<dkm> ddfreyne: thanks, I am pretty sure the problem is with my understanding of where my content is coming from and what it looks like at each stage of processing, though I am still getting some unexpected results
<dkm> I have created a filter that removes empty <p> tags from content (ddfreyne: thanks for the tip!), and it works beautifully with my simple test content
<dkm> but when I add it as a filter in Rules, even as a 'catch all' filter, I still get empty <p> tags in the final output
<ddfreyne> dkm: Can you share the RUles file?
<dkm> I'm not sure how best to test it
<dkm> sure, hold on
<dkm> the line is 'filter :vstrip'
<dkm> I don't really need it at the end there, really just in the "when 'article_list'" case, but for testing and all...
<dkm> and my filter: https://linx.li/4452y0t2e.rb
<dkm> I have noticed that the output of to_html is a complete document, i.e. with its own doctype and <body>, I wonder if that would not play nice with where I have placed 'filter :vstrip' in the nanoc flow?
<ddfreyne> dkm: Hmm, seems ok (but /reviews/* and /features/* etc obviously won't have the filter applied)
<dkm> yeah, that's fine, the only thing I really need filtered is at "/"
<ddfreyne> dkm: I'd suggest putting a breakpoint right before the filter is called and checking whether it is called where necessary
<ddfreyne> breakpoint = print statement (you could also let the filter print the input)
<dkm> ddfreyne: another possible question point, the "/" item is generated in the preprocess block
<ddfreyne> dkm: BTW, style tip: since @taxonomy_items is not used anywhere, you can make it a local variable (remove the @)
<ddfreyne> The rules file looks OK though
<dkm> ddfreyne: ok, thanks
<dkm> ddfreyne: I put '$stderr.puts "About to strip whitespace from #{item.identifier}" ' right before the filter call in Rules, and it looks like it is being called on "/" twice... does that make sense?
<ddfreyne> dkm: Yup, because nanoc executes the Rules first with fake data, to see whether it really needs to compile items
<ddfreyne> Confusing when debugging, but it works :)
<dkm> ah, ok
kourier_ is now known as kourier
kourier has quit [Quit: leaving]
kourier has joined #nanoc
<dkm> hmm, I dumped "content" in the filter to stderr and it looks find, i.e. I see some nice empty <p> tags in it
<dkm> but the filter code doesn't seem to find them, i.e. the "removing empty p" never gets printed
<dkm> so it must be in how I'm referencing the p node? Will try to make a more realistic document in my test code
<ddfreyne> dkm: I suggest creating a new nanoc site for testing, and debugging the filter in there
<ddfreyne> But that filter seems OK, in any case
<dkm> ok, thanks
<ddfreyne> (that does not mean it is)
<dkm> understood :)
_whitelogger_ has joined #nanoc
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_whitelogger has quit [Ping timeout: 245 seconds]
jaspervdj has quit [Ping timeout: 245 seconds]
Guest57452 has quit [Ping timeout: 245 seconds]
forcev has quit [Ping timeout: 245 seconds]
Guest57452 has joined #nanoc
relix has joined #nanoc
relix has quit [Max SendQ exceeded]
relix has joined #nanoc
uglybandersnatch has joined #nanoc
uglybandersnatch has quit [Remote host closed the connection]
<dkm> ddfreyne: success!! Everything was working fine, the problem was that my "empty" <p> tags actually had a unicode NO-BREAK SPACE in them
<dkm> so all my checks returned that they were not, in fact, empty
<dkm> apparently /\p{Z}/ will match NO-BREAK SPACE
<dkm> or POSIX /[[:space:]]/
<dkm> but notably #strip does not remove them
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jugglinmike has quit [Ping timeout: 272 seconds]