chore(docs): use done() instead of end() in gen-docs.js