Make serve-docs script more robust
Make serve-docs script more robust

* Make quit & reload actually kill the server, to prevent bind errors.
* Added an arg to bind to $HOSTNAME, instead of just localhost, for
  ease of code review.
* Makes option parsing a little more robust.
* Moves "build the jekyll tree" out of the "serve forever" loop.

PiperOrigin-RevId: 153840306

aehlig/bazel,twitter-forks/bazel,damienmg/bazel,akira-baruah/bazel,perezd/bazel,cushon/bazel,dslomov/bazel,perezd/bazel,variac/bazel,perezd/bazel,safarmer/bazel,aehlig/bazel,dropbox/bazel,meteorcloudy/bazel,aehlig/bazel,dslomov/bazel-windows,bazelbuild/bazel,akira-baruah/bazel,bazelbuild/bazel,snnn/bazel,juhalindfors/bazel-patches,meteorcloudy/bazel,davidzchen/bazel,dropbox/bazel,aehlig/bazel,katre/bazel,cushon/bazel,twitter-forks/bazel,ulfjack/bazel,meteorcloudy/bazel,variac/bazel,cushon/bazel,juhalindfors/bazel-patches,safarmer/bazel,spxtr/bazel,dropbox/bazel,aehlig/bazel,perezd/bazel,spxtr/bazel,spxtr/bazel,juhalindfors/bazel-patches,bazelbuild/bazel,damienmg/bazel,dslomov/bazel-windows,ButterflyNetwork/bazel,perezd/bazel,damienmg/bazel,twitter-forks/bazel,davidzchen/bazel,werkt/bazel,variac/bazel,dslomov/bazel,safarmer/bazel,juhalindfors/bazel-patches,cushon/bazel,twitter-forks/bazel,perezd/bazel,juhalindfors/bazel-patches,bazelbuild/bazel,damienmg/bazel,snnn/bazel,bazelbuild/bazel,ulfjack/bazel,variac/bazel,damienmg/bazel,ulfjack/bazel,dropbox/bazel,werkt/bazel,juhalindfors/bazel-patches,werkt/bazel,katre/bazel,aehlig/bazel,meteorcloudy/bazel,safarmer/bazel,meteorcloudy/bazel,akira-baruah/bazel,juhalindfors/bazel-patches,twitter-forks/bazel,snnn/bazel,meteorcloudy/bazel,werkt/bazel,werkt/bazel,twitter-forks/bazel,cushon/bazel,katre/bazel,werkt/bazel,dslomov/bazel,ulfjack/bazel,safarmer/bazel,spxtr/bazel,dslomov/bazel,katre/bazel,ulfjack/bazel,ButterflyNetwork/bazel,safarmer/bazel,davidzchen/bazel,davidzchen/bazel,snnn/bazel,snnn/bazel,dslomov/bazel,damienmg/bazel,dslomov/bazel-windows,dropbox/bazel,davidzchen/bazel,dslomov/bazel-windows,ButterflyNetwork/bazel,aehlig/bazel,dslomov/bazel,dslomov/bazel-windows,spxtr/bazel,snnn/bazel,davidzchen/bazel,dropbox/bazel,spxtr/bazel,ButterflyNetwork/bazel,akira-baruah/bazel,variac/bazel,damienmg/bazel,davidzchen/bazel,ButterflyNetwork/bazel,dslomov/bazel-windows,katre/bazel,twitter-forks/bazel,katre/bazel,snnn/bazel,ulfjack/bazel,ButterflyNetwork/bazel,spxtr/bazel,variac/bazel,perezd/bazel,meteorcloudy/bazel,cushon/bazel,bazelbuild/bazel,akira-baruah/bazel,dslomov/bazel,ulfjack/bazel,variac/bazel,akira-baruah/bazel