def METHOD_NAME(command):
    command_file = command.replace(" ", "-")
    # Use abspath so that it always has a path separator
    man = Popen(
        ["man", abspath(join(manpath, "conda-%s.1" % command_file))], stdout=PIPE
    )
    htmlpage = check_output(
        [
            "man2html",
            "-bare",  # Don't use HTML, HEAD, or BODY tags
            "title",
            "conda-%s" % command_file,
            "-topm",
            "0",  # No top margin
            "-botm",
            "0",  # No bottom margin
        ],
        stdin=man.stdout,
    )
    with open(join(manpath, "conda-%s.html" % command_file), "wb") as f:
        f.write(htmlpage)
    print("Generated html for conda %s" % command)