document compiling library