Compile lib/doc