perun

Discuss perun static site generator
bwstearns 2016-03-24T02:34:04.000004Z

hey @all. I'm a relatively new clojurian but really enjoying the language so far. Looking through the issues now but I was wondering if there was any task for perun that was relatively newbie friendly. I'm not a novice programmer, just new to Clojure.

bwstearns 2016-03-24T02:55:25.000006Z

ok, now I feel dumb, I just tried to spin up a Simplest Thing Possible (tm) and got clojure.lang.ExceptionInfo: Unable to resolve symbol: perun in this context

podviaznikov 2016-03-24T02:56:03.000007Z

hey @bwstearns let me think

podviaznikov 2016-03-24T02:56:32.000008Z

You didn’t try using perun yourself yet, right?

bwstearns 2016-03-24T02:57:39.000009Z

that's what I am trying to do, just following the user tutorial so I understand how to use it

bwstearns 2016-03-24T02:58:22.000010Z

It seems like I'm missing some installation step since it's a boot error

bwstearns 2016-03-24T02:59:16.000011Z

I get it at the boot --help step

;;  build.boot

(set-env!
 :source-paths #{"src" "content"}
 :dependencies [[perun "0.3.0" :scope "test"]])

(require '[io.perun :refer :all])


;; boot.properties

#<http://boot-clj.com>
#Mon Jan 18 23:19:36 CET 2016
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.7.0
BOOT_VERSION=2.5.5
BOOT_EMIT_TARGET=no

podviaznikov 2016-03-24T03:00:31.000015Z

I think you need single quote before [[

podviaznikov 2016-03-24T03:00:38.000016Z

Like here https://github.com/hashobject/perun/blob/master/examples/blog/build.boot#L4

bwstearns 2016-03-24T03:01:05.000018Z

oh wait... I seem to be an idiot, you need to run boot related commands from inside /content?

podviaznikov 2016-03-24T03:02:03.000019Z

sorry, not quite sure what you mean by from inside /content

bwstearns 2016-03-24T03:02:04.000020Z

I was running it from /my-app

bwstearns 2016-03-24T03:03:23.000021Z

mkdir my-website                         # creates the directory
cd my-website                            # moves you into the directory
so now you're in /my-website "Create the directory content and place a file index.markdown inside it, containing the following" and now I guess you're in the directory /my-website/content/ not /my-website

bwstearns 2016-03-24T03:03:49.000022Z

this appears to make a difference because I get the error in the my-website dir but not the my-website/content dir

podviaznikov 2016-03-24T03:05:20.000024Z

Looking into Getting started guide

podviaznikov 2016-03-24T03:07:01.000025Z

no you actually need to run boot command from my-website not my-website/content

podviaznikov 2016-03-24T03:07:11.000026Z

did you try adding missing '

podviaznikov 2016-03-24T03:07:42.000027Z

For some reason GitHub rendered example wrong. I see in the source but it’s not displayed

bwstearns 2016-03-24T03:07:59.000028Z

ohhh ok

bwstearns 2016-03-24T03:11:49.000029Z

Sorry for the misunderstanding (also for the wiki edit collision just there)

podviaznikov 2016-03-24T03:13:17.000030Z

no worries. I’m actually surprised that single quote is not rendered

podviaznikov 2016-03-24T03:13:35.000031Z

let me know if you hit more problems

bwstearns 2016-03-24T03:14:44.000032Z

Thanks, will do.

bwstearns 2016-03-24T03:39:58.000033Z

And it works, awesome.

podviaznikov 2016-03-24T05:50:53.000034Z

great, good that it works. I don’t have idea for beginner friendly tasks/bugs yet but I will think about it more

martinklepsch 2016-03-24T08:19:56.000035Z

@bwstearns: Sorry about that quoting issue, githubs code block renderer just drops them for some reason :(

bwstearns 2016-03-24T15:09:06.000036Z

@martinklepsch: no worries. That's the beauty of open source. To paraphrase, many feet make all mines trigger? Did anyone discover what was up with the missing quote?

martinklepsch 2016-03-24T15:09:30.000037Z

@bwstearns: you mean the reason?

martinklepsch 2016-03-24T15:10:12.000038Z

@bwstearns: I have no clue, to make it worse in some places the quote is displayed perfectly in others in the same code block it's not there at all

bwstearns 2016-03-24T15:10:50.000039Z

That is bizarre.

bwstearns 2016-03-24T15:14:18.000040Z

OK. Figured out the ' thing

bwstearns 2016-03-24T15:14:23.000041Z

kind of

bwstearns 2016-03-24T15:14:38.000042Z

putting '[[ makes it disappear, putting it in front of '[ [ does not

bwstearns 2016-03-24T15:15:46.000043Z

Even though it's in a codeblock is it still doing something expecting a link or something?

martinklepsch 2016-03-24T15:23:06.000044Z

ohhh!

martinklepsch 2016-03-24T15:23:14.000045Z

you're amazing if that's true!

martinklepsch 2016-03-24T15:23:27.000046Z

👏

bwstearns 2016-03-24T15:25:03.000047Z

Woohoo!

bwstearns 2016-03-24T15:25:38.000048Z

Adding "arbitrary formatting conundra" to linkedin skills.

martinklepsch 2016-03-24T15:27:02.000049Z

@bwstearns: thanks for fixing that!

martinklepsch 2016-03-24T15:27:21.000050Z

man I've spent what felt like hours trying to figure this out 😄

bwstearns 2016-03-24T15:28:35.000051Z

@martinklepsch: no problem. It looks less pretty now but it executes. I'll find out how to bug someone at github about it because the formatting really shouldn't be eating that quote mark. I looked through their markdown specification and it really shouldn't be happening.

bwstearns 2016-03-24T15:36:47.000052Z

@martinklepsch: mind if I CC you on the support email?

martinklepsch 2016-03-24T15:36:55.000053Z

no, sure

martinklepsch 2016-03-24T15:39:56.000054Z

cool, thanks for puttin in the effort @bwstearns

bwstearns 2016-03-24T15:40:54.000055Z

@martinklepsch: no worries. I'll try to make sure that I document/submit fixes for any toe stubbing while using the project 😄

podviaznikov 2016-03-24T17:04:06.000056Z

wow, good job finding workaround for the quote issue

podviaznikov 2016-03-24T17:12:00.000057Z

@bwstearns: as an idea for a new task todo I would suggest looking into http://www.metalsmith.io/. They have list of plugins. Maybe you would find some plugin useful and would like to implement similar one in the perun.

podviaznikov 2016-03-24T17:12:21.000059Z

E.x. https://github.com/doodzik/metalsmith-google-analytics this one looks like a small one

bwstearns 2016-03-24T17:12:58.000061Z

@podviaznikov: nice. Looking at it now.

podviaznikov 2016-03-24T17:13:35.000062Z

it’s is just for inspiration. Maybe @martinklepsch would have some suggestions/ideas too

martinklepsch 2016-03-24T17:14:59.000063Z

I wanted to write a task that renders plain edn data in some way. I.e. I have a list of books I've read in an edn file and I want a books.html file made from it

martinklepsch 2016-03-24T17:15:45.000064Z

it's pretty straightforward I think

martinklepsch 2016-03-24T17:16:21.000065Z

but to properly integrate you'll need to accustom yourself with how perun works

podviaznikov 2016-03-24T17:23:31.000066Z

Yeah, that is a good one. You can also put this lis right now in the perun.base.edn and it would be available in all pages. But I agree that having it not in the global meta is better way

bwstearns 2016-03-24T17:48:53.000067Z

Interesting.