Today we are pleased to announce the official release of the new YUIDoc, our JavaScript documentation generator. YUIDoc is a Node.js application that generates API documentation from comments in source, using a syntax similar to tools like Javadoc and Doxygen. YUIDoc is currently powering the API documentation for YUI and has been actively updated over the last year.

/* */ comment blocks.Some of the new features added to this version are:
Let’s get into a little more detail on some of these:
If you have Node.js and NPM installed, installation is easy:
npm -g install yuidocjs
YUIDoc will parse your comment with Markdown before it applies the Handlebars template giving you great flexibility when writing your docs.
YUIDoc uses YUI’s class infrastructure internally and exports all of these modules when you require the yuidocjs module. This allows end users to hook into YUIDoc’s internals and change the way it does things. You can extend classes, augment them or just flat out change methods to suite your needs.
In this release we use the built-in Y.Handlebars helper to handle all template generation. We have also taken development into consideration when building this feature. YUIDoc will first search it’s built in theme directory for partials, then it will search your local theme directory. This allows you to only have to maintain the files you wish to change in your theme and not have to copy every partial even if you are not modifying it.
This is my favorite new feature! You can fire up YUIDoc in server mode and it will give you live previews of your documentation as you edit it. Simply save your file and reload the page from the built in server and see your changes live. Including external data and cross-linking. You no longer have to generate the docs for your entire project just to see a documentation change!
YUIDoc now allows you to link your documentation to the rendered output from another YUIDoc instance. For example, if your project is using YUI and extending some of our core classes, you can link to our exported data.json file (from our YUIDoc build) and when YUIDoc parses your documentation it will fetch our data and cross-link all of your extended classes back to ours. This way you don’t have to document another projects code, you simply point over to their docs like it was part of yours.
All future YUIDoc development will be fully conducted on Github. We will be tracking the project on their wiki and using their issues to manage our tickets. It will be run like a native Node.js project completely in the open. We will also be using a Google Group for support requests, so sign up today!
We are also happy to report that YUIDoc’s unit tests are hosted on Travis-CI and will run per Github push!
The old Python source for YUIDoc is in a branch on the current Github repo where it will remain indefinately. There are no plans on accepting any pull requests or making any updates to that code base.
May 31, 2012 at 8:52 pm
Great stuff, YUIDoc looks awesome. :)
June 1, 2012 at 12:19 pm
Thanks!
June 13, 2012 at 10:22 am
[...] YUIDoc 0.3.0 Release Blog Post [...]
July 11, 2012 at 8:11 am
[...] YUIDoc 3.0 Release Notice – JavaScript documentation generator. [...]