perun

Discuss perun static site generator
martinklepsch 2016-06-03T11:05:48.000065Z

I was thinking about this too. The task docs might be handy, alternative would be to have some kind of mini tutorial for all tasks but these will get outdated and I'm also not sure how useful that would be since they usually require a bit of context.

martinklepsch 2016-06-03T12:03:40.000066Z

@juhoteperi: the issue with the github wiki based approach: how do we trigger a rebuild of the site?

juhoteperi 2016-06-03T12:07:45.000067Z

@martinklepsch: cron job

martinklepsch 2016-06-03T12:10:14.000068Z

@juhoteperi: but that would be in defined intervals not "on-change", right? I want a service that does programmatic code edits to a codebase and commits them to a repo

juhoteperi 2016-06-03T12:10:40.000069Z

Doesn't matter, the interval can be 15 sec or what ever

juhoteperi 2016-06-03T12:15:30.000070Z

Wiki is available in git repo but I'm not sure if any CI supports that directly

juhoteperi 2016-06-03T12:16:05.000071Z

Though there is a webhook which is called when wiki is updated

juhoteperi 2016-06-03T12:18:01.000072Z

One option would be to have docs on separate repo and link to edit page: https://github.com/hashobject/perun/edit/master/README.md

juhoteperi 2016-06-03T12:18:23.000074Z

Not sure how this works for ppl without commit rights, but IIRC it provides option to create PR?

martinklepsch 2016-06-03T13:11:06.000075Z

y, was just thinking that putting it into the website repo might be better. Wikis also have these fancy links we'd need to parse and a bunch of other stuff

martinklepsch 2016-06-03T13:14:51.000076Z

this would also simplify the rebuilding stuff

podviaznikov 2016-06-03T18:45:16.000077Z

So it’ seems like github send webhooks for each wiki update. And wiki is available as git repo (https://help.github.com/articles/adding-and-editing-wiki-pages-locally/). So we can setup Heroku integration (or something else), that will receive hook, checkout code, build site and deploy it

podviaznikov 2016-06-03T18:45:28.000079Z

It seems like it can be doable based on push to wiki

juhoteperi 2016-06-03T18:49:27.000081Z

Yeah, it is possible but required custom software, at Heroku or somewhere