def main()

in scripts/do_all_things.py [0:0]


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

    # copy the docs from apache/druid
    copy_druid_docs.main(versions, source)

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

    print("Copying build output to ../published_versions. Use that directory to publish the site.")
    shutil.copytree('build','published_versions', dirs_exist_ok=True)