how to automate export documentation