Fix settings environment for docs builds.

The docs still had several scripts using setup_environ. This method has been
deprecated since 1.4, and now that we're on 1.6, it's gone entirely. This
change switches over to the environment variable approach.

Testing: Built the codebase and manual docs.

Reviewed at https://reviews.reviewboard.org/r/5398/