<ddfreyne>
cDlm: Still doesn't work. Nothing prevents you from having nanoc and nanoc-cli installed side by side.
<cDlm>
maybe I don't understand what you want nanoc and nanoc-cli to provide
<cDlm>
nanoc is the umbrella package ?
<guardian>
"bobthecow | ddfreyne: you need to override `hyphens: auto` for <code> :)" <-- what does it refer to? a filter?
<cDlm>
guardian: css in the upgrade guide, I guess
<bobthecow>
guardian: refers to css in the entire website.
<bobthecow>
it currently sets the whole website to auto-hyphenate everything.
<bobthecow>
but that's problematic inside <code> tags, since those are supposed to contain literal code.
<bobthecow>
see my screenshot :)
<guardian>
I get it now
<guardian>
is there a way to render this prettier? '/x/' =~ %r{^#{y}}
<guardian>
y is supposed to be a string
<bobthecow>
for regexp with strings in them, i always use the constructor rather than literal regexp.
<bobthecow>
Regexp.new("^#{y}")
<guardian>
ok
<guardian>
I have another question
<guardian>
I have a image() helper that inserts an image
<guardian>
when the parent item is in :teaser rep, it takes the :teaser rep of the image
<guardian>
when the parent item is in :default rep, it takes the :default rep of the image
<guardian>
this is achieved with this code fragment: rep = image.rep_named(item_rep.name)
<guardian>
and as you can see, I'm using item_rep.name and not @item_rep.name
<guardian>
I recall I onced asked the question but I fail to find the answer: I think it should be @item_rep but I *think* some versions of nanoc didn't support @item_rep in helpers
<guardian>
does that ring a bell?
<bobthecow>
does not ring a bell.
<guardian>
ok
<guardian>
ddfreyne: is gem 'nanoc-asciidoctor' enough? or do I need to install standalone asciidoctor beside the nanoc filter?
cDlm has quit [Ping timeout: 240 seconds]
<ddfreyne>
guardian: That is enough
<ddfreyne>
guardian: But `image.rep_named(item_rep.name)` is *exactly* the same as `item_rep`
<ddfreyne>
It's going full circle.
<guardian>
nope
<ddfreyne>
Nope?
<ddfreyne>
Oh oops, I read that as `item` not `image`
<ddfreyne>
Never mind.
<guardian>
nope, item == a blog pos, while image == @items.find { ... } == the image to be inserted :)
<guardian>
Asciidoctor::Document#initialize is not clickable and when inspecting Asciidoctor::Document's doc... well it tells I can set options like :safe or :header_footer but in the end that doesn't tell much
<ddfreyne>
guardian: Yeah, RDoc is kinda crappy
<guardian>
are there options you would advise me to set?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]