top | item 5021241

JQuery's API documentation gets a redesign

128 points| jorde | 13 years ago |api.jquery.com | reply

53 comments

order
[+] akamaka|13 years ago|reply
Not a fan of this redesign.

-What happened to the comments? That was one of the most useful features of the old documentation, and I constantly relied on them to find examples or clarify edge cases.

-The code samples are on opposite colored backgrounds, which makes the whole page extremely painful to read. Can you imagine reading paper book that had code samples written in white text on a black background? How is that a good idea on the web?

-The huge blue border around the edge adds even more visual noise.

-Why is so much stuff laid out inside of boxes, starting with the list of functions? Developers are experts at reading raw blocks of text, so minimal formatting is needed.

-Finally, where did the old documentation go? The content has been changed, but where can we find it? There doesn't seem to be any links.

The old documentation definitely needed some work, but these improvements have brought with them new problems, and overall I find it harder to use than before.

Edit:

Compare Google's documentation: https://developers.google.com/maps/documentation/javascript/...

While not perfect, it does a lot of things right: no extraneous formatting around the page edges, solid background, clean code examples, and importantly, access to old versions of the documentation.

[+] xnxn|13 years ago|reply
After experiencing the wall of well-intentioned garbage that is php.net I no longer like comments in docs. Those examples and clarifications of edge cases should be in the documentation itself.
[+] curiousdannii|13 years ago|reply
Comments have been disabled long before this redesign.
[+] mustardamus|13 years ago|reply
FYI, I am working on a revamp of jQAPI, a alternative browser for the documentation. Should be released pretty soon.

http://pre.jqapi.com/ https://github.com/jqapi/jqapi

[+] VMG|13 years ago|reply
So you're the guy! Thanks for the site, I use it every time I'm using jQuery.
[+] nathancahill|13 years ago|reply
Thank you, thank you! Has been a much needed replacement to JQuery's awful docs. Hope you can up the bar again!
[+] modarts|13 years ago|reply
Wow, thanks for building this! It's leaps and bounds more usable (and fast) than the official jQuery docs.
[+] missing_cipher|13 years ago|reply
Just wanted to say that I also always use your site. Super fast too!
[+] prisonguard|13 years ago|reply
i must say jqapi's quick inline search is a win! Has been on my bookmarks bar for well over 2 years now!

Thanks

[+] ecaron|13 years ago|reply
I would have liked it the jQuery API documentation would be closer to the PHP.net documentation. For instance, I want to know the options for $.post - going to http://api.jquery.com/post/ would sure be nice (and even if it didn't exist, it could do a search for "you might have meant...")

For people unfamiliar with PHP.net's configuration, going to php.net/<function or whatever name> will go to the function if its known or search if it isn't (like http://php.net/strapos)

[+] chrisguitarguy|13 years ago|reply
Here you go: https://gist.github.com/4477015

Replaces and error page in WordPress with a search for the request URI. Now we just need someone at jQuery HQ to use it.

Still uses WP's built in search functionality, which is less than great.

[+] fourstar|13 years ago|reply
Consider talking to eddiemonge or one of the other team members on freenode about this:

Getting involved (http://docs.jquery.com/Getting_Involved): Additionally most of the jQuery core development team can be found in the #jquery-dev IRC channel on irc.freenode.net.

[+] mildweed|13 years ago|reply
Another feature of php.net I wish this had: a "Related functions" or "See also" section.
[+] fredley|13 years ago|reply
I like the idea, but it's far more spread out than the previous design, and it's a bit much for me. I wish there was a google-like 'cosy' setting allowing me to compress things back a bit.
[+] sebnukem2|13 years ago|reply
Every redesign on the web boils down to having less information on the viewport, requiring more scrolling, thanks to bigger font and wasted "Comfortable" spaces. It drives me crazy.

At least Google offers you a "Condensed" layout.

[+] Glench|13 years ago|reply
Man, how about finishing that jQuery plugins site instead of a redesign? :)
[+] Zikes|13 years ago|reply
I would imagine the new plugins site would integrate with this Documentation site, or at least follow a similar design pattern.
[+] vineet|13 years ago|reply
Different people might be involved with each initiative.
[+] cgarvey|13 years ago|reply
Nice update! Much appreciated improvements.

The only thing I noticed that was weird is the search box seems to have different behavior between the instant results and the results you receive when you hit <enter>. Not sure if this is intended, but the instant results seem to be limited to whatever categorical scope you're in.

[+] r4vik|13 years ago|reply
This is still slow as shit, why? It seems to be running under php when the whole thing could've been generated with jekyll and maybe even pjax'd to make navigation even quicker.
[+] jlongster|13 years ago|reply
Any website "could be generated with jekyll" but you're totally ignoring the benefits of maintaining content with a dynamic site.
[+] redsymbol|13 years ago|reply
Just on HN, right now it's close to the #1 position; likely this site is getting hit with massive traffic as we speak, from diverse sources. Wait until that dies down before passing judgment.
[+] DigitalSea|13 years ago|reply
I might not be in the majority here, but I like the redesign. Some of the entries might not be as complete, but I'm glad the comments section is gone because lets face it rarely was there anything useful in the comments, this isn't php.net.
[+] bluetidepro|13 years ago|reply
Overall, this is a great update for the jQuery docs! It feels much more clean, and is a lot easier to navigate. My only complaint would be the dark code blocks, does it bother anyone else's eyes?
[+] _mayo|13 years ago|reply
I personally like the dark code blocks. It's the blue they chose for the background that bothers me a bit.
[+] gabipurcaru|13 years ago|reply
If you ask me, making the old one faster would have been much better; I don't go there for the nice design, I go because I have stuff to get done, and I'd rather get that stuff done fast.
[+] mrharrison|13 years ago|reply
This was so needed, don't know why people are hating, it's much easier to read and browse through. Thanks for the update.
[+] ckarmann|13 years ago|reply
I don't know if I am alone, but having no global view of methods in a category without scrolling down is a noticeable loss of productivity for me. I, too, would prefer a "cosy" setting of some sort.

When people start to make cheatsheets then it means your documentation lacks some bird's eye view...

[+] conradfr|13 years ago|reply
The logo does not waste enough screen estate.
[+] garraeth|13 years ago|reply
Were comments removed or is it just me that can't see them?
[+] LocalPCGuy|13 years ago|reply
I am hoping they come back, but guessing they were intentionally removed. I found the answers to many edge-case problems in the comments, and some might be hard to include in the docs specifically because they were version dependent or just not as intended. I agree that ideally those answers would be in the docs.
[+] nestlequ1k|13 years ago|reply
Sorely needs a bit more line height on the doc content. Terribly unreadable all bunched together.
[+] imjared|13 years ago|reply
This is a nice looking redesign but I think I'll probably stick to jqapi.com for quick reference. It's fast, I can find methods by URL (eg. jqapi.com/#p=get), and search auto-completes.
[+] TommyDANGerous|13 years ago|reply
It looks nice, but the previous design was excellent. It had more examples, more detailed explanations, and lots of comments. I'll just have to get use to this.
[+] fourstar|13 years ago|reply
Has been in development for awhile so I'm glad to see the team finally got it live. Although the jQuery UI docs page is still pretty ugly.
[+] jakozaur|13 years ago|reply
Neat!

How about adding a link which will let you experiment using jsbin (or sth similar) with the code examples?