config.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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 "dotenv/config";
  7. import rootPkgJson from "../../package.json";
  8. import { navbarEn, sidebarEn } from "./configs/index.js";
  9. const verMajor = Number(rootPkgJson.version.split(".")![0]);
  10. export default defineUserConfig({
  11. lang: "en-US",
  12. base: process.env.HOST_HOMEPAGE === "true" ? `/v${verMajor}/docs/` : "/",
  13. title: "geniURL",
  14. description: "A simple JSON and XML REST API to search for song metadata, the lyrics URL and lyrics translations on genius.com",
  15. theme: defaultTheme({
  16. logo: "https://vuejs.press/images/hero.png",
  17. navbar: navbarEn,
  18. sidebar: sidebarEn,
  19. }),
  20. bundler: viteBundler(),
  21. plugins: [
  22. seoPlugin({
  23. hostname: "https://api.sv443.net",
  24. author: rootPkgJson.author,
  25. }),
  26. sitemapPlugin({
  27. hostname: "https://api.sv443.net",
  28. }),
  29. ]
  30. });