Hey everyone,
As there is no tool to extract documentation from CSS files that I
know of, I got my hands dirty and wrote one myself. It is written in
the Ruby language as a Rubygem, and makes use of the wonderful csspool
library, which in turn depends on Gnome's powerful libcroco to do its
parsing. Therefore, the parser is as correct and stable as any CSS
parser using these libraries.
You can find the complete source code along with installation
instructions on Github:
http://github.com/imedo/css_doc
Unfortunately, because of a bug in libcroco, installation is still a
bit awkward, since you have to manually patch a C source file to get
it to work.
Please note that the css_doc library implements only a subset of the
CSSDOC standard (yet), but also has some unique features of its own,
like code usage examples. Therefore, this tool is also very useful for
extracting a styleguide directly from your CSS files.
For an example of what documentation could look like, click here:
http://opensource.imedo.de/css_doc/index.html
Please let me know what you think about this tool, and of any ways on
how to improve it.
Thanks,
--Thomas Kadauke