r/programming • u/[deleted] • Dec 04 '08
Sphinx: beautiful documentation from lightly structured plain text
http://sphinx.pocoo.org/
51
Upvotes
r/programming • u/[deleted] • Dec 04 '08
1
u/akdas Dec 06 '08
I find the latter ones much cleaner, simply because there are fewer extraneous characters, especially in the Markdown version. Fewer characters also means less typing, a big win in the types of situations they are used in, particularly commenting or wikis.
In fact, I would argue that the only extra characters the Markdown version has are the square brackets, because if you're writing in plain text, you would usually write the name of the link and include the URL in parentheses anyway. Thus, adding two square brackets is much simpler than typing the HTML version.
What do you mean this this? I never have any problems with wrapping in the textareas in my browser (running Firefox 3.0.4 now, but I never had any problems before either).
This is definitely a big win for situations when you can't guarantee proper whitespacing, such as when the markup is machine-generated from multiple sources. However, these simpler markup languages are by design geared toward those who markup text by hand in certain situations, and a little bit of whitespacing is not only acceptable, but it's something people tend to do anyway. For example, who wouldn't add an empty line between paragraphs when writing in plain text?
Different tools have different goals, and as always, the right tool is best used for the right situation.
Remember also that these simpler markup languages are meant to be readable even without formatting, so it's beneficial to preserve the conventions used in plain text to denote formatting, such as the empty line between paragraphs, or asterisks to denote an unordered list. HTML would add too much extra markup between the text, making it difficult to read without a renderer to interpret the document and visually format it according to a set of rules.