def METHOD_NAME(self, build_dir: BuildDir) -> List[Path]:
    """Update the help.md file in the build directory and use it to generate a man file."""
    dockerfile = build_dir.dockerfile_with_parent_env(
        # platform should not matter, we only care about the component and maintainer labels
        self.workflow.imageutil.base_image_inspect()
    )
    labels = Labels(dockerfile.labels)
    try:
        _, name = labels.get_name_and_value(Labels.LABEL_TYPE_NAME)
    except KeyError:
        name = ''
    maintainer = dockerfile.labels.get('maintainer', '')
    help_path = build_dir.path / self.help_file
    start_time = get_pipeline_run_start_time(self.workflow.osbs,
                                             self.workflow.pipeline_run_name)
    with open(help_path, 'r+') as help_file:
        lines = help_file.readlines()
        if not lines[0].startswith("% "):
            lines.insert(0, "%% %s (1) Container Image Pages\n" % name)
            lines.insert(1, "%% %s\n" % maintainer)
            lines.insert(2, "%% %s\n" % start_time.strftime("%B %-d, %Y"))
            help_file.seek(0)
            help_file.truncate()
            help_file.writelines(lines)
            self.log.info("added metadata to %s for generating nicer manpages", help_path)
    man_path = build_dir.path / self.man_filename
    go_md2man_cmd = ['go-md2man', f'-in={help_path}', f'-out={man_path}']
    try:
        check_output(go_md2man_cmd, stderr=STDOUT)
    except OSError as e:
        if e.errno == errno.ENOENT:
            raise RuntimeError(
                "Help file is available, but go-md2man is not present in a buildroot"
            ) from e
        raise
    except CalledProcessError as e:
        raise RuntimeError(
            "Error running %s: %s, exit code: %s, output: '%s'" % (
                e.cmd, e, e.returncode, e.output
            )
        ) from e
    if not man_path.exists():
        raise RuntimeError("go-md2man run complete, but man file is not found")
    # We modified one file and created the other, let's copy both to all per-platform dirs
    return [help_path, man_path]