The documentation is maintained in DocBook, in doc/docbook. It can be built by running 'make docs' (or 'make htmldoc' or 'make pdfdoc' to build a subset).