ddfreyne changed the topic of #nanoc to: 3.6.2 (mar 23th) | 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
bghost has quit [Quit: leaving]
<bobthecow> guardian: define helpers in /lib/* and call them in Rules.
<bobthecow> they're available to you :)
tlevine has joined #nanoc
vukini has quit [Remote host closed the connection]
vukini_ has joined #nanoc
vukini_ has left #nanoc [#nanoc]
yogsototh has joined #nanoc
<ddfreyne> bobthecow: As for including GitHub issue #’s, include the first reported issue and then the pull request that fixes it? Or just the former? Or just the latter?
kitallis has joined #nanoc
pavelkunc has joined #nanoc
pavelkunc has quit [Ping timeout: 252 seconds]
pavelkunc has joined #nanoc
pavelkunc has quit [Ping timeout: 252 seconds]
pavelkunc has joined #nanoc
pavelkunc has quit [Ping timeout: 252 seconds]
pavelkunc has joined #nanoc
VitamineD has quit [Ping timeout: 240 seconds]
pavelkunc has quit [Quit: Leaving.]
Evolution has joined #nanoc
<Evolution> I'm not certain if this belongs to nanoc, susy, or compass.. but using a fluid grid with percentages seems to bomb as soon as @include container; is used.
<Evolution> when nanoc is run, it throws errors about mixing % and em being invalid.
<Evolution> even though I don't reference em anywhere.
<darix> what happens if you call the compass tools manually?
<Evolution> haven't done that yet. I'm still getting familiar with the combo.
<Evolution> I'll give that a shot.
<Evolution> for reference -> mostly following this https://gist.github.com/liuwen-lvtu/1294530
<ddfreyne> Evolution: nanoc doesn’t care much about compass and sass etc, so it is most likely a sass/compass/… issue
<Evolution> ddfreyne: fair enough.
<Evolution> I'll work up a demo bit and take it to the compass/susy folks.
jugglinmike has joined #nanoc
<Evolution> thanks
Evolution has left #nanoc ["http://www.bit-integrity.com"]
<ddfreyne> Ack
<ddfreyne> Wanted to say, I can help (because nanoc.ws uses Susy)
bbommarito has quit [Remote host closed the connection]
<darix> ddfreyne: is saving the attribute :is_nav_page to a metadata file bad or good?
<darix> and next question ... does the nanoc item know the path to the source item?
<ddfreyne> darix: is_nav_page seems like agood thing to add (actually, stoneship.org uses it to add a noindex to archive pages)
<ddfreyne> darix: the source filename is @item[:content_filename] or @item[:meta_filename]
<darix> hmm
<ddfreyne> Or if you combine the meta+content you can use @item[:filename]
<Keltia> ddfreyne: thanks for add_toc.rb, just stole it and using it now.
* Keltia loves nanoc
<ddfreyne> haha :)
<Keltia> the only issue I have is that my css skills are close to nil :)
<darix> Keltia: hint: use one of the existing frame works like bootstrap, susy, foundation, bourbon instead of starting from scratch
<Keltia> darix: that's the next step, now I'm just playing with nanoc default style
* darix is using darkstrap
<Keltia> darix: I plan to add a mobile version at some point so I know I'll need to use something
<ddfreyne> I am a fan of this Bootstrap theme: http://divshot.github.io/geo-bootstrap/
<darix> Keltia: those tools usually cover that with the responsive versions of their themes
<darix> remind me to kick you when i see you irl one day. tia!
<darix> :p
<darix> and darkstrap because bright themes suck with picture sites imho
<ddfreyne> I was considering using Foundation for nanoc.ws,b ut went with the much simpler combo of SCSS+Compass+Susy
<Keltia> ddfreyne: arghhh my eyes, they're bleeding now
<darix> ddfreyne: when you did the whole dependency tracking ... did you consider maybe using code from rake or other ruby based make replacements?
<ddfreyne> darix: dependencies in nanoc are similar to those used in make, but they run the opposite direction. nanoc's build system is much more similar to tup (check out http://gittup.org/tup/build_system_rules_and_algorithms.pdf)
<ddfreyne> darix: One of the ideas I had for nanoc 4.x is to make it a lot more generic, so that it could be used as an advanced (and easier to use) rake
<ddfreyne> But... that's outside the scope, at least for the time being. It's certainly not a goal
<darix> naw was just wondering if you considered maybe using rake as backend and found limitations why you didnt do it.
<ddfreyne> darix: If item A includes content or attributes from an item B, rake wouldn't know of that dependency
<ddfreyne> That's basically the reason. There's no way to let rake know all that
<darix> ic
<ddfreyne> (unless you define the dependencies up front, but that is hard and not always possible)
<ddfreyne> darix: I wrote a Rules file that let me compile C source code with nanoc once :)
<ddfreyne> content/main.c, content/src/blah.c, content/include/blah.h
<darix> you must have been bored :p
<ddfreyne> -> output/main !
<ddfreyne> darix: Probably... I also wouldn't recommend doing that, but that goes without saying :)
matjas has quit [Ping timeout: 260 seconds]
<darix> ddfreyne: and i just wanted to suggest to stbuehler we use it as buildsystem for lighty 2 :p
<ddfreyne> darix: haha
<ddfreyne> darix: One neat thing is that it was able to track #include's, which make can't :)
<darix> so we would use preprocess rules to find external deps and stuff (pkg-config and friends)
<darix> and then compile the program
matjas has joined #nanoc
<ddfreyne> darix: Hmm, not sure about that... I was referring to tracking #include dependencies inside the project itself. A header file that is included in other files will, when changed, cause those other files to be recompiled automatically
<ddfreyne> and of course with guard-nanoc you'd find out build failures immediately etc...
<ddfreyne> But yeah. nanoc isn't made for C source ;)
<darix> ddfreyne: well once you have that ... you also need to find the cflags and ldflags for things like glib2 and friends
<ddfreyne> darix: preprocess do ; @config[:ldflags] = 'pkg-config --whatever --options --it --takes --for --ldflags' ; end
<ddfreyne> something like that?
<darix> yes
musicmatze has quit [*.net *.split]
<ddfreyne> changing the ldflags would cause everything to be relinked (but not recompiled)
<darix> and we also need ways to define "only target lighttpd2-worker needs to be linked with openssl"
<ddfreyne> darix: @items['/lighttpd2-worker/'][:libraries] << 'openssl'
<ddfreyne> darix: But... that would require a lighttpd2-worker to exist in content (or to be generated by the preprocessor)
musicmatze has joined #nanoc
<ddfreyne> Slightly ugly :(
<darix> hehe
<stbuehler> you are both crazy.
<ddfreyne> ^- truth
<ddfreyne> I should have done my LaTeX master dissertation with nanoc :)
<darix> stbuehler: we are not any more crazy than you!
<ddfreyne> (a :to_pdf filter should be fairly easy to write)
<ddfreyne> There's wkhtml2pdf but it doesn't work properly (hangs) :(
<darix> ddfreyne: the binary you can download from the google code project?
<ddfreyne> darix: Yes, and the issue is the same when you compile from source
<ddfreyne> There's an issue reported for that but it hasn't been fixed
<darix> ddfreyne: i tried to get our opensuse binary running headless
<darix> just pita
<darix> their binary is linked a against a patched Qt without X deps
<ddfreyne> I wanted to convert the nanoc website in a book PDF, but that didn't work well
<darix> osx specific issue?
<ddfreyne> darix: I think so
* darix sends ddfreyne an opensuse dvd :p
<stbuehler> who uses cd/dvd anymore? install from usb..
<darix> stbuehler: works too
<darix> :)
<ddfreyne> I might have an OpenSUSE DVD here still... one I got at FOSDEM
<darix> we released 12.3 shortly after fosdem
<darix> ddfreyne: in custom commands ... are things like @items also set up?
<ddfreyne> darix: If you begin a command's #run method with self.load_site, you can get hold of @items using self.site..items
<ddfreyne> self.site.items rather (so not @items)
<darix> ok
<darix> thanks
<darix> NoMethodError: undefined method `site' for #<Cri::CommandDSL:0x00000001536708>
<darix> hm
<darix> forgot the first command
<ddfreyne> darix: You need to inherit from Nanoc::CLI::CommandRunner, and at the end of the command use "runner NameOfCommandRunnerClass"
<darix> NoMethodError: undefined method `load_site' for #<Cri::CommandDSL:0x000000024013c8>
<darix> uhm
<darix> aha
<ddfreyne> darix: also, the #load_site should be inside the #run method
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
bghost has joined #nanoc
yogsototh has quit [Ping timeout: 248 seconds]
bghost has quit [Quit: leaving]
drops has joined #nanoc
<ddfreyne> bobthecow: Do you agree that the encoding should be explicitly specific in config.yaml and not inferred from the environment? If omitted, it should default to utf-8.
drops has quit [Quit: leaving]
<ddfreyne> bobthecow: I’ve made the change. I think it’s the right way to go :)
<ddfreyne> bobthecow: I’m going to do some major changes in experimental-4.x… without pull requests because I want to hack away very quickly and go very fast with nanoc 4.x. Pull requests would probably slow down the, ehh, surgical procedures ;)
<ddfreyne> bobthecow: Three things that I have changes just now:
<ddfreyne> 1. removed bundler support (need bundle exec, which makes more sense)
<ddfreyne> 2. require encoding to be set explicitly (default to utf-8, no more encoding from environment)
<ddfreyne> 3. remove filesystem_verbose and rename filesystem_unified to filesystem
* telemachus notes "All rake tasks"
<telemachus> It's interesting: I include nanoc's rake tasks, but I don't think that I ever use them.
<telemachus> Should be easy to update then.
<ddfreyne> telemachus: They are in 3.x thin wrappers around the nanoc commands
<telemachus> Yeah.
<telemachus> At some point I must have switched, but I never removed the require statement.
<telemachus> Old code does that: just hangs on.
<ddfreyne> indeed :)
<ddfreyne> One of the reasons for the spring cleaning in nanoc’s code with nanoc 4.x
* telemachus nods
<ddfreyne> Created a Trello board for nanoc 4.0
<ddfreyne> As an experiment.
<ddfreyne> This might make brainstorming and sharing ideas a lot easier
<telemachus> Ruby config instead of the YAML or as an alternative?
<ddfreyne> Instead of YAML
<ddfreyne> telemachus: You should be able to comment and vote on cards in the nanoc Trello board
<ddfreyne> Anyway, sleep time. gnight!
<telemachus> Night
bghost has joined #nanoc
bghost has quit [Changing host]
bghost has joined #nanoc
bghost has quit [Ping timeout: 246 seconds]
bghost has joined #nanoc
bghost has quit [Changing host]
bghost has joined #nanoc
louquillio_ has quit [Remote host closed the connection]
louquillio_ has joined #nanoc
jugglinmike has quit [Quit: Leaving.]