def main()

in scripts/do_all_things.py [0:0]


def main(versions, no_docs, source, skip_install, use_yarn):

    # if we want to update docs, copy over from apache/druid
    if not no_docs:
        copy_druid_docs.main(versions, source)

        # build all specified versions of the docs
        build_docs.main([versions, "latest"], skip_install, use_yarn)

    # if we don't want to update docs, just build latest
    else:
        build_docs.main(["latest"], skip_install, use_yarn)