def METHOD_NAME(specfile, directory):
    """
    Given a specfile generate markdown files in the specified directory
    """
    if not exists(convert_command):
        print("downloading %s..." % convert_command)
        url = "https://repo1.maven.org/maven2/io/github/swagger2markup/swagger2markup-cli/1.3.3/swagger2markup-cli-1.3.3.jar"
        filedata = urllib.request.urlretrieve(url, convert_command)
    if not exists(config):
        print("initializing %s..." % config)
        with open(config, "w") as f:
            f.write("swagger2markup.markupLanguage=MARKDOWN")
    # Generate markdown files
    command = "java -jar %s convert --swaggerInput %s --config %s --outputDir %s" % (
        convert_command,
        specfile,
        config,
        directory,
    )
    subprocess.check_call([command], shell=True)