News for hackers. Stuff that matters.
Re:Static site generation on python by yen223 on Thursday February 14, 2013 @02:42AM (#5218308)
Are there any good guides to using ReStructuredText?

I love all things Python, but for some reason I could never wrap my head around ReStructuredText's syntax. Maybe it's because all my favorite sites use Markdown (including this one!), but I find Markdown's syntax to be more intuitive.

Re:Static site generation on python by dochtman on Thursday February 14, 2013 @02:45AM (#5218320)
Start here:

http://sphinx-doc.org/rest.html

Then go here for more:

http://docutils.sourceforge.net/docs/user/rst/quickref.html

I don't really understand why reST is so unpopular compared to Markdown.

Re:Static site generation on python by piranha on Thursday February 14, 2013 @03:37AM (#5218451)
> I don't really understand why reST is so unpopular compared to Markdown.

There are two reasons: first is that Markdown is much simpler and is more narrow scoped and second is that reST implementation only exists in Python and Haskell - to some extent, not supporting extensions, obviously. Both of those reasons make entry level higher.

Re:Static site generation on python by xintron on Thursday February 14, 2013 @02:59AM (#5218353)
For HTML generation Markdown is much easier for most people to get used to and understand. When needing to provide output in various formats reST is more suited but also have a bit of a steeper learning curve.

It depends on what you're doing. For documentation I'm always running reST but for articles for sites etc (with a static site generator) I will turn to Markdown.

Re:Static site generation on python by evilduck on Thursday February 14, 2013 @09:50AM (#5219647)
I second this opinion, though it's been a couple years since I last used it. Designing complex tables in reST was far more cumbersome to me than just writing it in HTML. It requires you to basically know the HTML your markup syntax will generate anyways, then deal with the quirks of that but with less overall control than raw HTML gives you.

However, generating PDFs, a static website, and any other formats from a single reST document is much easier than doing to equivalent from an HTML document so it has its uses, but I would not use it as blogging markup unless I planned on publishing a book from the same blog content.

Re:Static site generation on python by BruceM on Thursday February 14, 2013 @02:57AM (#5218349)
I do wish that the process for extending docutils and Sphinx were better documented.

There's also a bunch of things in Sphinx that need improvement with the PDF and ePub output.

But for what it is and does, I like it a lot. I don't know of anything for Markdown that lets me do as much structured markup as I can do in reST.

Re:Static site generation on python by human_error on Thursday February 14, 2013 @03:45AM (#5218480)
> I don't really understand why reST is so unpopular compared to Markdown.

Markdown is so much simpler than Rest.

Re:Static site generation on python by tangue on Thursday February 14, 2013 @02:56AM (#5218343)
Sidenote : you can use Markdown with Pelican if you want. You just need to install the Markdown package.
Re:Static site generation on python by eliben on Thursday February 14, 2013 @08:27AM (#5219313)
ReST and Markdown are not at odds. The former can be seen as a (vast) expansion of the latter. It's not an actual extension, of course, because the syntax is somewhat different, but it is conceptually.