def METHOD_NAME():
    qljs_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
    os.chdir(qljs_dir)
    gem_home = os.path.join(qljs_dir, "man", "gems")
    env = dict(os.environ, GEM_HOME=gem_home)
    asciidoctor_is_installed = (
        subprocess.call(
            [
                "gem",
                "list",
                "--installed",
                "--version",
                ASCIIDOCTOR_VERSION,
                "asciidoctor",
            ],
            env=env,
            stdout=subprocess.DEVNULL,
        )
        == 0
    )
    if not asciidoctor_is_installed:
        subprocess.check_call(
            [
                "gem",
                "install",
                "--version",
                ASCIIDOCTOR_VERSION,
                "asciidoctor",
            ],
            env=env,
        )
    asciidoctor_path = os.path.join(gem_home, "bin", "asciidoctor")
    subprocess.check_output(
        [
            asciidoctor_path,
            "-b",
            "manpage",
            "-D",
            "man/",
            "-o",
            "quick-lint-js.1",
            "cli.adoc",
        ],
        env=env,
    )
    subprocess.check_output(
        [
            asciidoctor_path,
            "-b",
            "manpage",
            "-D",
            "man/",
            "-o",
            "quick-lint-js.config.5",
            "config.adoc",
        ],
        env=env,
    )
    subprocess.check_output(
        [
            asciidoctor_path,
            "-b",
            "manpage",
            "-D",
            "man/",
            "-o",
            "quick-lint-js-lsp.8",
            "lsp.adoc",
        ],
        env=env,
    )
    process_man(pathlib.Path("man/quick-lint-js.1"))
    process_man(pathlib.Path("man/quick-lint-js.config.5"))
    process_man(pathlib.Path("man/quick-lint-js-lsp.8"))