Trying to launch nanoc in copy of working website - stuck

15 views
Skip to first unread message

Tom Cloyd

unread,
Jun 30, 2023, 11:24:48 PM6/30/23
to nanoc
As a long-time devoted user of nanoc, I remain necessarily an amateur. I get stuck, on rare occasions, and this is one of them.

(My OS: Pop!_OS Linux, fully updated.)

I have copied all files from a directory containing a website for which I regularly use nanoc very successfully into a new directory, with the intent to simply add new content and take off from there. It's a no-go. I've reviewed nanoc documentation, and all the relevant config files (Rules, nanoc.yaml, etc.). I have not found the problem.

My crash log: https://pastebin.com/nXwmeQV0

Any help at all would be much appreciated!

Tom

Denis Defreyne

unread,
Jul 3, 2023, 3:24:28 AM7/3/23
to na...@googlegroups.com
Hey Tom,

Could it be that you’re missing a line that activates the Rendering helper? Either of these lines should do it:

use_helper Nanoc::Helpers::Rendering
include Nanoc::Helpers::Rendering

That line can go anywhere in lib/; I personally like lib/helpers.rb, Also see https://nanoc.app/doc/helpers/.

Hope this helps!

--
You received this message because you are subscribed to the Google Groups "nanoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nanoc+un...@googlegroups.com.

Tom Cloyd

unread,
Jul 8, 2023, 1:46:54 PM7/8/23
to nanoc
Denis, I'd' swear I sent this a few days back, but can find it nowhere. I just want to say that you were right, and your suggestion fixed my problem. Thanks!

Tom
Reply all
Reply to author
Forward
0 new messages