add call to endGenerateDocumentation at end of docs generation, to get the callback fired