Re: [dev] Makefile/markdown based static site generator

2013-02-21 Thread Patrick Haller
On 2013-02-21 10:19, sta...@cs.tu-berlin.de wrote: > of course: > sed -n '/^\s*

Re: [dev] Makefile/markdown based static site generator

2013-02-21 Thread stanio
* sta...@cs.tu-berlin.de 2013-02-21 10:16 > sed -n '/\s*^$//; > p; > q; > }' --s.

Re: [dev] Makefile/markdown based static site generator

2013-02-21 Thread stanio
* Sam Watkins 2013-02-21 06:21 > or other tools with simpler regexps: > > html_split | grep '^$//' Yeah, I find this more readable. I'd even get rid of grep, sed is perfect for the job sed -n '/\s*^$//; p; q; }' --s.

Re: [dev] Makefile/markdown based static site generator

2013-02-20 Thread Patrick Haller
On 2013-02-21 14:19, Kai Hendry wrote: > If you are a Makefile demi-god, you could please help me support input > files blighted with spaces. For example running the Makefile on my > blog, it chokes and stops with > https://github.com/kaihendry/natalian/blob/master/archives/tag/fair%20use.mdwn htt

Re: [dev] Makefile/markdown based static site generator

2013-02-20 Thread Kai Hendry
On 21 February 2013 14:11, Sam Watkins wrote: > foo/bar/index.mdwm -> index.html , title "bar" >> expressing that as a Makefile is really hard. So hard I gave up. Not sure it's worth it. What about the all to common /srv/www/index.mdwn case? A page title of "www" ? wtf? :) If you are a Makefi

Re: [dev] Makefile/markdown based static site generator

2013-02-20 Thread Sam Watkins
On Thu, Feb 21, 2013 at 01:27:58PM +0800, Kai Hendry wrote: > I thought of using the filename, e.g. foo/bar/cat.mdwn -> > foo/bar/index.html with the page title cat. how about foo/bar/cat.mdwm -> cat.html , title "cat" foo/bar/index.mdwm -> index.html , title "bar" > expressing that as a

Re: [dev] Makefile/markdown based static site generator

2013-02-20 Thread Chris Down
On 2013-02-21 13:34, Chris Down wrote: > On 2013-02-21 13:27, Kai Hendry wrote: > > Perl isn't suckless ;) > > https://twitter.com/kaihendry/status/303309891425165312 > > I would say it sucks more than an experimental GNU grep feature that is > totally > un-portable ;-) > > Chris s/more/less/

Re: [dev] Makefile/markdown based static site generator

2013-02-20 Thread Chris Down
On 2013-02-21 13:27, Kai Hendry wrote: > Perl isn't suckless ;) https://twitter.com/kaihendry/status/303309891425165312 I would say it sucks more than an experimental GNU grep feature that is totally un-portable ;-) Chris

Re: [dev] Makefile/markdown based static site generator

2013-02-20 Thread Kai Hendry
On 21 February 2013 13:20, Sam Watkins wrote: > Why not make it the same as the main heading? You mean the first h1? That's not always the case. > or use the first line of the markdown? Sometimes we use HTML > or use the file name / folder name (for index), somehow filtered? I thought of usin

Re: [dev] Makefile/markdown based static site generator

2013-02-20 Thread Sam Watkins
On Thu, Feb 21, 2013 at 12:10:04PM +0800, Kai Hendry wrote: > Thanks Nick for sharing that Makefile. > I've decided to use the first HTML comment in the markdown > as the page title. Why not make it the same as the main heading? or use the first line of the markdown? or use the file name / folder

Re: [dev] Makefile/markdown based static site generator

2013-02-20 Thread Kai Hendry
Thanks Nick for sharing that Makefile. I've decided to use the first HTML comment in the markdown as the page title. https://github.com/kaihendry/sg-hackandtell/blob/master/Makefile If you can suggest something that sucks less than: grep -m1 -oP '(?<=)' # i'd be grateful ;) Cheers!

Re: [dev] Makefile/markdown based static site generator

2013-02-19 Thread Carlos Torres
On Tue, Feb 19, 2013 at 11:52 PM, Kai Hendry wrote: > https://github.com/kaihendry/sg-hackandtell/blob/master/.htaccess > Ah i missed that rewrite :p

Re: [dev] Makefile/markdown based static site generator

2013-02-19 Thread Kai Hendry
Hey Carlos, thanks for taking a look. On 20 February 2013 12:29, Carlos Torres wrote: > i started looking through the repo and found the list thingy > list/maillist it looks like the List-Unsubscribe header http url says > unsub rather than unsubscribe on line 28, not sure if thats correct. > al

Re: [dev] Makefile/markdown based static site generator

2013-02-19 Thread Carlos Torres
i started looking through the repo and found the list thingy list/maillist it looks like the List-Unsubscribe header http url says unsub rather than unsubscribe on line 28, not sure if thats correct. also isn't it even better etiquette to also include a mailto url in the List-Unsubscribe header.

Re: [dev] Makefile/markdown based static site generator

2013-02-19 Thread Sam Watkins
> Makefile/markdown based static site generator I did something similar, but without having looked at your code yet I can tell you that yours sucks less than mine! hehe

Re: [dev] Makefile/markdown based static site generator

2013-02-19 Thread Brandon Invergo
Kai Hendry writes: > https://github.com/kaihendry/sg-hackandtell/blob/master/Makefile > > For bonus points I have a plan9 mk version here: > https://github.com/kaihendry/sg-hackandtell/blob/master/mkfile > > Enjoy and I would love to hear if it could suck less or if there are > similar projects I

Re: [dev] Makefile/markdown based static site generator

2013-02-19 Thread Nick
I tend to do variations on the theme of the attached, nowadays. I used to have a shell find thing, but got rid of it as it was slow over a large directory (particularly fuse-ssh mounted), and also I don't think it's standard Make. For that matter nor is the % syntax that you use, but I appreciate

[dev] Makefile/markdown based static site generator

2013-02-19 Thread Kai Hendry
Hey guys, https://github.com/kaihendry/sg-hackandtell/blob/master/Makefile For bonus points I have a plan9 mk version here: https://github.com/kaihendry/sg-hackandtell/blob/master/mkfile Enjoy and I would love to hear if it could suck less or if there are similar projects I could learn from. De