Revert "Remove unneeded promise and Q.all in the end of gen-docs.generate"
Revert "Remove unneeded promise and Q.all in the end of gen-docs.generate"

This reverts commit 008e318a482888123724fa9895ae540782e71c6e.

Zougi/docular,Vertafore/docular,Vertafore/docular,Zougi/docular