bin/generateDocs fixes

* Fix bin/generateDocs as per shellcheck (quote to prevent word
splitting).
* Add generated docs folder to .gitignore

Change-Id: I1922b42a7a55aea88362fd70914b251156eb8267
Merge "bin/generateDocs fixes"