00:49
jarr0dsz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:39
louquillio has quit [Ping timeout: 250 seconds]
01:41
louquillio has joined #nanoc
02:27
louquillio has quit [Remote host closed the connection]
02:30
louquillio has joined #nanoc
02:36
jugglinmike has quit [Quit: Leaving.]
03:40
alerante has joined #nanoc
04:43
<
bobthecow >
i think that's the last of the issues you raised.
06:07
alerante has quit [Remote host closed the connection]
07:15
number-six has quit [Remote host closed the connection]
07:15
jaspervdj has quit [Remote host closed the connection]
07:42
ics has quit [Ping timeout: 240 seconds]
07:45
ics has joined #nanoc
07:56
VitamineD has joined #nanoc
08:08
alerante has joined #nanoc
08:12
jarr0dsz has joined #nanoc
08:12
alerante has quit [Ping timeout: 250 seconds]
08:37
jarr0dsz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:43
VitamineD has quit [Quit: VitamineD]
08:51
jarr0dsz has joined #nanoc
09:13
ics has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
09:19
VitamineD has joined #nanoc
09:19
number-six has joined #nanoc
09:19
jaspervdj has joined #nanoc
10:09
alerante has joined #nanoc
10:13
alerante has quit [Ping timeout: 246 seconds]
12:10
alerante has joined #nanoc
12:15
alerante has quit [Ping timeout: 265 seconds]
14:11
alerante has joined #nanoc
14:15
alerante has quit [Ping timeout: 252 seconds]
14:25
alerante has joined #nanoc
14:34
jugglinmike has joined #nanoc
15:16
cDlm has joined #nanoc
15:16
cDlm has quit [Client Quit]
15:17
VitamineD has quit [Ping timeout: 250 seconds]
15:28
alerante has quit []
16:37
louquillio has quit [*.net *.split]
16:37
ldk has quit [*.net *.split]
16:37
logankoester has joined #nanoc
16:38
louquillio has joined #nanoc
16:43
jaspervd1 has joined #nanoc
16:44
louquillio__ has joined #nanoc
16:44
louquillio__ has quit [Remote host closed the connection]
16:44
jaspervdj has quit [Write error: Broken pipe]
16:49
louquillio has quit [*.net *.split]
17:01
louquillio has joined #nanoc
18:15
ics has joined #nanoc
18:18
<
tom[] >
can i use routing rules to sort this problem out? Found 2 content files for content/special-topics/cpb-vs-nw; expected 0 or 1
18:26
<
tom[] >
if so, i can't think how
18:34
VitamineD has joined #nanoc
18:46
VitamineD has quit [Quit: VitamineD]
18:49
VitamineD has joined #nanoc
19:04
VitamineD has quit [Quit: VitamineD]
19:06
<
tom[] >
i'll try to give an example. there are two versions of a datasheet on welding robots. one is html and the other is php
19:06
<
tom[] >
sources are /content/datasheets/robots/welding.html and /content/datasheets/robots/welding.pdf
19:07
<
tom[] >
would be nice to have urls: /datasheets/robots/welding/ and /datasheets/robots/welding.pdf respectively
19:30
VitamineD has joined #nanoc
19:37
VitamineD has quit [Quit: VitamineD]
19:58
<
dkm >
tom[]: who is the author of these data sheets?
19:59
<
dkm >
i.e. if it's you, and the html and pdf are generated from the same source, then the way to do it is using Nanoc::ItemRep, I believe
19:59
<
dkm >
oh,wait, that's depricated
19:59
<
dkm >
but same idea
20:00
<
tom[] >
that's not practical. the production of the docs from their sources is just too complex. atm it is manual
20:01
<
dkm >
oh, well, that is too bad
20:01
<
tom[] >
i guess i can rename the pdf source and use a routing rule to give it the desired output name
20:01
<
dkm >
though, if you don't mind me asking, who is making it not practical? is it an externally inforced formatting guidline or something?
20:02
<
dkm >
because this is a classic example of the extra work we make for ourselves by not following the DRY/SPOT principle
20:02
<
tom[] >
if ms word worked better...
20:02
<
dkm >
oh gawd, don't even go down that road :)
20:02
<
tom[] >
i really don't know the right answer
20:03
<
dkm >
the ideal situation would be to write the datasheet in something like LaTeX
20:03
<
dkm >
there are probably even LaTeX templates out there for data sheets
20:03
<
tom[] >
shoot me now
20:03
<
tom[] >
it's the only tool i have that generates pdfs with working internal hyperlinks
20:03
<
dkm >
trust me, way easier than M$ Word B.S. you have to go through to get any type of reasnable, maintainable output
20:04
<
dkm >
Hmm, I have definitely done working internal hyperlinks with Beamer
20:04
<
dkm >
(LaTeX extension for presentations)
20:04
<
dkm >
and actually, footnotes and stuff have been linked automatically for me too
20:05
<
dkm >
whether or not that happens depends more on the LaTeX rendering engine than on the format itself
20:05
<
dkm >
which is what's nice about it
20:06
<
dkm >
but if that is not an option, then I suspect the quick fix to your currrent problem is to rename your source
20:07
<
tom[] >
the docs are finished. the cost of retooling now has no justification
20:10
VitamineD has joined #nanoc
20:14
<
bobthecow >
just rename one of the files.
20:14
<
bobthecow >
it'll be better in nanoc 4.x
20:14
<
bobthecow >
alternatively, those sound a lot more like static assets than things required to build your site, so you might want to use an asset data source.
20:15
<
bobthecow >
basically it's a simple rule and data source that copies everything across from, say, a folder in your project root called /assets/
20:15
<
tom[] >
i haven't gotten into data sources yet. just got the default
20:16
<
tom[] >
i'll take a looh
20:16
<
tom[] >
the pdfs are static
20:16
<
tom[] >
the html needs relativize_paths
20:24
<
bobthecow >
that's fine. move the pdf into a static data source, and leave the html in normal.
20:27
<
tom[] >
seems reasonable
20:34
VitamineD has quit [Quit: VitamineD]
21:16
VitamineD has joined #nanoc
21:41
<
bitsynthesis >
bobthecow: is it possible to render content item within another content item? it's easy enough to select the @item via the @items array but I'm not really sure what to do with it from there
21:41
<
bitsynthesis >
i realize that nanoc really would prefer i put partials in /layouts
21:41
<
bitsynthesis >
but i think it complicates my dir structure to do it that way
21:43
<
bobthecow >
compiled_content(snapshot: 'foo')
21:45
<
bobthecow >
so in an erb file, that would look something like...
21:45
<
bobthecow >
<%= @items['/identifier/'].compiled_content(snapshot: 'last') %>
21:51
<
bitsynthesis >
aha, that class reference is just what i needed i think. thanks, was interested about what else could be done with an item object
21:52
<
bobthecow >
compiled_content just happens to pass through to an ItemRep
21:52
<
bobthecow >
which is why i linked you to that one.
21:58
<
ddfreyne >
bobthecow: You should inherit from StandardError rather than Exception
21:58
<
bobthecow >
ooh. are you going to do a code review? :)
21:58
<
ddfreyne >
A "rescue => e" will not catch them otherwise
22:00
<
bitsynthesis >
ah, i see. thanks again
22:03
<
bobthecow >
ddfreyne: probably most of mine should extend runtime error anyway.
22:09
<
ddfreyne >
bobthecow: I don't really understand RuntimeError anyway
22:14
<
tom[] >
i'm starting to wonder about using nanoc as a build system for the static parts of a yii webapp
22:15
<
tom[] >
nicer than grunt
22:15
<
bobthecow >
tom[]: i've done it before for other webapps.
22:16
<
bobthecow >
i'd say it's worth it if you're building pages and stuff.
22:16
<
bobthecow >
grunt's prolly better if you're just building js and compiling scss or less.
22:19
<
tom[] >
does nanoc have something for extracting from an html doc everything inside <body>…</body>?
22:41
<
ddfreyne >
tom[]: Not directly, but you can write your own filter
22:41
<
tom[] >
might nokogiri be handy here?
22:41
<
ddfreyne >
tom[]: def run(content, params={}) ; Nokogiri.html(content).css('body').inner_html ; end
22:41
<
ddfreyne >
(untested)
22:42
<
tom[] >
tnx. so much easier to get started with example code
23:06
jugglinmike has quit [Quit: Leaving.]
23:17
VitamineD has quit [Quit: VitamineD]
23:25
VitamineD has joined #nanoc
23:42
bitsynthesis has quit [Quit: Page closed]