update bin/build_doc reflecting input from asmeurer