News for hackers. Stuff that matters.
Re:Gutenberg: Dynamic README generator with mixins for GitHub by monkeyspaw on Saturday October 19, 2013 @03:05PM (#6577401)
Gutenberg looks awesome! I have a special interest in tools that help programmers build documentation while they code. Part of the reason is that I struggle with it constantly.

A shameless self-promotion here: in the last 2 days, my coworkers and I built a web app that can take markdown files and display them in a nice webpage. I just tried it out with the README file in this repo, and thought others might be interested in the result: http://www.onlinemarkdowneditor.com/docs/somu/gutenberg/READ...

There are quite a few similar projects out there, but we wanted to eliminate the extra steps of hosting and "building" documentation. However, I think something like Gutenberg looks like a very powerful way to build documentation, and it fits in nicely with the project I just worked on.

Re:Gutenberg: Dynamic README generator with mixins for GitHub by matthiasv on Saturday October 19, 2013 @01:51PM (#6577163)
So, for the simplest tasks such as writing a README you need a Ruby gem these days? Or is it some satire which I didn't get yet?

(Just to clarify my position: I am all for automatizing daunting tasks as much as possible, but this seems to be a little far-fetched.)

Re:Gutenberg: Dynamic README generator with mixins for GitHub by sanderjd on Saturday October 19, 2013 @03:18PM (#6577442)
Well, no, nobody said you need a library to help you write your README, but if you get tired of writing the same structure or making the the same updates over and over again, you can use this to automate some of that process if you so desire. Seems pretty nifty to me, though I may well never use it.

I really don't understand the mindset that takes people from "hey look somebody wrote a free piece of software I can use if I want" to "what, now I need to use yet another piece of software for something?"

Re:Gutenberg: Dynamic README generator with mixins for GitHub by matthiasv on Saturday October 19, 2013 @06:45PM (#6578237)
> I really don't understand the mindset that takes people from "hey look somebody wrote a free piece of software I can use if I want" to "what, now I need to use yet another piece of software for something?"

It's not that I stop people from doing things they want to do. I just wanted to point out that something seemingly simple as writing a README usually does not require yet another tool that has to be learned and – being a dependency – maintained.

Re:Gutenberg: Dynamic README generator with mixins for GitHub by svoroval on Saturday October 19, 2013 @01:57PM (#6577189)
Not really far-fetched. Look at Sinatra README for example: https://github.com/sinatra/sinatra

There are 11 versions of Sinatra’s README which don’t share any general templates. They should be manually edited after each release. This is kind of thing that needs automatization.

Plus, it is much easier to inject badges by a mixin, not by copypasting and manually changing some elements from your old READMEs.

Re:Gutenberg: Dynamic README generator with mixins for GitHub by matthiasv on Saturday October 19, 2013 @06:40PM (#6578221)
Good point about those many versions. It's actually the first time that I've seen multiple READMEs in one project.
Re:Gutenberg: Dynamic README generator with mixins for GitHub by benaiah on Saturday October 19, 2013 @01:56PM (#6577183)
It doesn't seem to be useful so much as a way to make README writing easier, but rather as an easier and more modular way to keep it updated. This is important - stale docs are a PITA for anyone trying to use a library, and it's very easy to let them fall by the wayside.
Re:Gutenberg: Dynamic README generator with mixins for GitHub by svoroval on Saturday October 19, 2013 @01:58PM (#6577190)
Sure! You’ve got the idea.
Re:Gutenberg: Dynamic README generator with mixins for GitHub by ret on Saturday October 19, 2013 @02:01PM (#6577203)
I agree, but why not use existing program like M4.
Re:Gutenberg: Dynamic README generator with mixins for GitHub by svoroval on Saturday October 19, 2013 @02:09PM (#6577230)
Because it is not designed for this purpose?
Re:Gutenberg: Dynamic README generator with mixins for GitHub by robbfitzsimmons on Saturday October 19, 2013 @02:51PM (#6577358)
I continue to be confused about when a README is appropriate for documentation on Github, and when a wiki is preferred, as do my coworkers. (It's a minor bone of contention.)

If you have this many pieces that it's hard to keep straight without a tool like Gutenberg, isn't that modularization the whole idea of a wiki?

Re:Gutenberg: Dynamic README generator with mixins for GitHub by sanderjd on Saturday October 19, 2013 @03:21PM (#6577452)
I like the model of a README that shows high level project structure and common use cases, with links to specific wiki pages for more depth on a topic, and a catch-all top-level wiki link at the end.
Re:Gutenberg: Dynamic README generator with mixins for GitHub by svoroval on Saturday October 19, 2013 @02:56PM (#6577376)
Wiki doesn’t download with your repo. I think that’s the reason.

I don’t know. I just don’t feel approriate to use Wiki for projects that are smaller than 6000 LOC, I don’t know.

Maybe you’re right.

Re:Gutenberg: Dynamic README generator with mixins for GitHub by kanzure on Saturday October 19, 2013 @03:29PM (#6577491)
You can always put the wiki as a submodule in the git repo since the github wikis are just git repos too:

git clone [email protected]:whatever/whatever.wiki.git

Re:Gutenberg: Dynamic README generator with mixins for GitHub by straykov on Saturday October 19, 2013 @04:28PM (#6577675)
And what is the format of Wiki pages?
Re:Gutenberg: Dynamic README generator with mixins for GitHub by anton_gogolev on Saturday October 19, 2013 @04:39PM (#6577713)
GitHub uses Gollum [1] for wikis.

[1]: https://github.com/gollum/gollum/wiki

Re:Gutenberg: Dynamic README generator with mixins for GitHub by pekk on Saturday October 19, 2013 @07:53PM (#6578432)
I would have preferred to see a general solution addressing README as a special case, rather than a whole project dedicated only to README. Not interested in picking up a different tool for each kind of generated text/markup file
Re:Gutenberg: Dynamic README generator with mixins for GitHub by straykov on Saturday October 19, 2013 @11:48AM (#6576778)
Awesome!