top | item 1919594

Ask HN: awesome web-based documentation?

38 points| jon_dahl | 15 years ago | reply

We're currently rewriting our documentation for Zencoder, and are looking for examples of good web-based docs. For example, I still use Slicehost tutorials for Linux work (http://articles.slicehost.com); they're really well done how-to guides for web hosting and linux sysadmin work.

Any other examples of good doc systems, or tips for creating effective documentation?

46 comments

order
[+] makmanalp|15 years ago|reply
http://us3.php.net/strstr -> The php docs have one redeeming quality that I wish all of them had: comments! Whenever there is odd behavior, a gotcha, a pitfall, it's always in the comments. No need to trawl through blogs and mailing lists.
[+] auxbuss|15 years ago|reply
I agree, and have an additional comment:

If the comments become part of the documentation, then you need to ruthlessly edit them to remove incorrect advice, duplication, and redundancy. If you simply leave everything there forever, then the comments become worthless. Integrity of information is everything.

[+] kaerast|15 years ago|reply
The php docs are also nice in that it's really easy to work out a url to the document you need; it's almost always just php.net/functionname, and if it's not then you still get something useful.
[+] Nick_C|15 years ago|reply
I loathe PHP's docs for two reasons: - the colour choice; - the comments.

The colour choice for code examples is orange on gray. This is almost impossible to read for colour-blind people. I have to squint to make out each character. I can't get in to a flow and read the code, I have to decode each character then put them together to read the snippet in its entirety.

I don't think user-land comments have any place in documentation. The docs form part of the official specs for the language and, personally, I find user comments create too much unintentional confusion. You often find well-intentioned amateurs make basic errors in PHP's doc examples. User comments can be great for examples, but they belong in a separate place, say, a wiki.

An example of good docs IMO is Python's. A nice helpful topic bar on the left, and careful docs on the right.

[+] stevelosh|15 years ago|reply
Flask's documentation is my favorite. I sat down and read all of it one night just because it was so beautiful and readable.

http://flask.pocoo.org/

[+] gpjt|15 years ago|reply
I think they generated it using Sphinx, which I heartily recommend as a tool -- you write your docs in REST, and it generates HTML (with built-in JavaScript search), PDF or other formats. It was developed for the latest version of the Python docs.

http://sphinx.pocoo.org/

[+] nicksergeant|15 years ago|reply
Thought I'd get to Flask before Steve, but clearly I was mistaken. Another vote for Flask. Gorgeous.
[+] tgriesser|15 years ago|reply
This is my favorite documentation... http://codeigniter.com/user_guide/

The table of contents dropdown tab at the top is a cool way to organize the different categories of information... the styling of the docs is also consistent and easily legible

[+] stephenou|15 years ago|reply
CodeIgniter: http://codeigniter.com/user_guide

The interface is really simplistic which allows me to read the documentation a lot longer than other site (ex. php.net). Also, it's very well-organized and completed, I can go there every time I have a question about the framework and don't need to Google much.

[+] cd34|15 years ago|reply
SQLAlchemy http://www.sqlalchemy.org/docs/

Mako Templates http://www.makotemplates.org/docs/

Beautifully written, well documented, plenty of examples and use cases... and then a super responsive developer that appears to never sleep and answers questions posted on the mailing list within minutes.

Pyramid (The Pylons/BFG Merger) http://docs.pylonshq.com/

Documentation + 100% test coverage and also a very responsive development team.

[+] j_baker|15 years ago|reply
I can vouch for the developer of Mako and SQLAlchemy. Michael Bayer has even added features to SQLAlchemy just to get one of my previous employers to use it.
[+] makethetick|15 years ago|reply
jQuery and CakePHP have been very helpful in the past.

http://docs.jquery.com/Main_Page

http://book.cakephp.org/

Also, the PHP documentation is very good. The layout could be better but it's kept really simple with lots of examples to help you out.

http://www.php.net/manual/en/

[+] josegonzalez|15 years ago|reply
It's funny because everyone ALWAYS complains about the CakePHP documentation on #cakephp, but whenever it is pointed out that it is a wiki, the following excuses come up:

- I'm too busy

- It should already be there, this is a common problem

- I don't know enough to edit

- How do I make an account

Good documentation for a community is hard.

[+] bluedevil2k|15 years ago|reply
The jQuery docs were MUCH better before the 1.3 release. They now use "plain speak" descriptions of what each function does and sorts them alphabetically. They used to be coder friendly descriptions grouped together by functionality. For example, the show() and hide() used to be next to each other, now they're not.
[+] vinnyglennon|15 years ago|reply
http://blog.dexy.it/247 should be ready soon. The product allows your documenation to be ran like normal code, no matter the language, therefore you will always have working docs(if regularly running it against a vm)
[+] desigooner|15 years ago|reply
PHP.Net and Django.

PHP's multiple examples are really neat. that and people commenting.

[+] cies|15 years ago|reply
i like publican, you have to feed it docbook (xml), but it then outputs pdf/html/epub, allows for pot-po based translations and is nicely stylable.

in one setup i put asciidoc (a wiki-syntax-to-docbook tool) before publican to make writing/editing the docs more straight forward.

i cannot give you one-size-fits-all documentation tips, it depends heavily on what document you work on (api docs, a user guide, etc.) and what is the target audience.

personally i like to avoid the word "you" in documentation.