message: chore(sitemap2): improve logger
diff: @@ -3,7 +3,7 @@ import {
  removeEndingSlash,
  removeLeadingSlash,
  } from "@vuepress/shared";
  -import { chalk, fs, withSpinner } from "@vuepress/utils";
  +import { chalk, fs } from "@vuepress/utils";
  import { SitemapStream } from "sitemap";
  import { logger } from "./utils.js";
  @@ -161,9 +161,9 @@ export const generateSiteMap = async (
  options: { base },
  } = app;
  - await withSpinner(`Generating sitemap to ${chalk.cyan(sitemapFilename)}`)(
  - () =>
  - new Promise<void>((resolve) => {
  + logger.load(`Generating sitemap to ${chalk.cyan(`/${sitemapFilename}`)}`);
  +
  + await new Promise<void>((resolve) => {
  const sitemap = new SitemapStream({
  hostname,
  ...(xmlns ? { xmlns } : {}),
  @@ -187,14 +187,15 @@ export const generateSiteMap = async (
  sitemap.end(() => {
  resolve();
  });
  - })
  - );
  + });
  +
  + logger.succeed();
  const robotTxtPath = dir.dest("robots.txt");
  if (fs.existsSync(robotTxtPath)) {
  - await withSpinner(`Appended sitemap path to ${chalk.cyan("robots.txt")}`)(
  - async () => {
  + logger.load(`Appended sitemap path to ${chalk.cyan("robots.txt")}`);
  +
  const robotsTxt = await fs.readFile(robotTxtPath, { encoding: "utf8" });
  const newRobotsTxtContent = `${robotsTxt.replace(
  @@ -203,7 +204,7 @@ export const generateSiteMap = async (
  )}\nSitemap: ${hostname}${base}${sitemapFilename}\n`;
  await fs.writeFile(robotTxtPath, newRobotsTxtContent, { flag: "w" });
  - }
  - );
  +
  + logger.succeed();
  }
  };
  