config.mjs 938 B

123456789101112131415161718192021222324252627282930
  1. import { defineUserConfig } from "vuepress/cli";
  2. import { defaultTheme } from "@vuepress/theme-default";
  3. import { viteBundler } from "@vuepress/bundler-vite";
  4. import { seoPlugin } from "@vuepress/plugin-seo";
  5. import { sitemapPlugin } from "@vuepress/plugin-sitemap";
  6. import rootPkgJson from "../../package.json";
  7. const verMajor = Number(rootPkgJson.version.split(".")[0]);
  8. export default defineUserConfig({
  9. lang: "en-US",
  10. base: `/v${verMajor}/docs/`,
  11. title: "geniURL",
  12. description: "A simple JSON and XML REST API to search for song metadata, the lyrics URL and lyrics translations on genius.com",
  13. theme: defaultTheme({
  14. logo: "https://vuejs.press/images/hero.png",
  15. navbar: ["/", "/get-started"],
  16. }),
  17. bundler: viteBundler(),
  18. plugins: [
  19. seoPlugin({
  20. hostname: "https://api.sv443.net",
  21. author: rootPkgJson.author,
  22. }),
  23. sitemapPlugin({
  24. hostname: "https://api.sv443.net",
  25. }),
  26. ]
  27. });