Update doc generation script.

* Allow building locally for testing purposes (output in ./build)
* Don't require root
* Don't clone generated-docs (speedup)