compile doc