def METHOD_NAME(argv=sys.argv[1:]):
    parser = argparse.ArgumentParser(
        description="Generate the 'doc' management jobs on Jenkins")
    add_argument_config_url(parser)
    add_argument_rosdistro_name(parser)
    add_argument_build_name(parser, 'doc')
    add_argument_dry_run(parser)
    args = parser.parse_args(argv)
    config = get_index(args.config_url)
    build_files = get_doc_build_files(config, args.rosdistro_name)
    build_file = build_files[args.doc_build_name]
    if build_file.documentation_type not in [DOC_TYPE_ROSDOC, DOC_TYPE_ROSDOC2]:
        print(("The doc build file '%s' has the wrong documentation type to " +
               "be used with this script") % args.doc_build_name,
              file=sys.stderr)
        return 1
    jenkins = connect(config.jenkins_url)
    configure_management_view(jenkins, dry_run=args.dry_run)
    group_name = get_doc_view_name(
        args.rosdistro_name, args.doc_build_name)
    configure_reconfigure_jobs_job(
        jenkins, group_name, args, config, build_file, dry_run=args.dry_run)
    configure_trigger_jobs_job(
        jenkins, group_name, build_file, dry_run=args.dry_run)