import { defineConfig } from "vitepress"; import { withPwa } from "@vite-pwa/vitepress"; import UnoCSS from "unocss/vite"; import { presetUno, presetAttributify, presetIcons } from "unocss"; import { meta } from "./constants"; import { pwa } from "./pwa"; export default withPwa( defineConfig({ title: "FMHY", description: meta.description, titleTemplate: ":title | FreeMediaHeckYeah", lang: "en-US", lastUpdated: true, cleanUrls: true, appearance: "dark", srcExclude: ["readme.md", "single-page", "devtools.md"], ignoreDeadLinks: true, sitemap: { hostname: meta.hostname, }, head: [ ["meta", { name: "theme-color", content: "#7bc5e4" }], ["meta", { name: "og:type", content: "website" }], ["meta", { name: "og:locale", content: "en" }], ["meta", { property: "og:type", content: "website" }], ["meta", { property: "og:title", content: meta.name }], // ["meta", { property: "og:image", content: ogImage }], ["meta", { property: "og:description", content: meta.description }], // ["meta", { property: "og:url", content: ogUrl }], ["link", { rel: "icon", href: "/favicon.ico", sizes: "any" }], ["link", { rel: "icon", href: "/logo.svg", type: "image/svg+xml" }], ["link", { rel: "apple-touch-icon", href: "/apple-touch-icon.png" }], ["meta", { name: "apple-mobile-web-app-status-bar-style", content: "black-translucent" }], ["meta", { name: "author", content: "Joaquรญn Sรกnchez" }], ["meta", { name: "keywords", content: meta.keywords.join(" ") }], ["meta", { name: "twitter:description", content: meta.description }], ["meta", { name: "twitter:title", content: meta.name }], ["meta", { name: "twitter:card", content: "summary_large_image" }], // ["meta", { name: "twitter:image", content: ogImage }], ["meta", { name: "twitter:site", content: meta.hostname }], // ["meta", { name: "twitter:url", content: ogUrl }], ], vite: { plugins: [ UnoCSS({ presets: [ presetUno(), presetAttributify(), presetIcons({ scale: 1.2, extraProperties: { display: "inline-block", "vertical-align": "middle", }, }), ], }), ], }, themeConfig: { search: { provider: "local", }, outline: "deep", logo: "/fmhy.ico", nav: [ { text: "Beginners Guide", link: "/Beginners-Guide" }, { text: "Glossary", link: "https://rentry.org/The-Piracy-Glossary" }, { text: "Guides", link: "https://rentry.co/fmhy-guides" }, { text: "Backups", link: "https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/backups" }, { text: "Updates", link: "https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/updates/" }, ], sidebar: [ { text: "๐Ÿดโ€โ˜ ๏ธ Beginners Guide to Piracy", link: "/Beginners-Guide" }, { text: "๐Ÿ“› Adblocking / Privacy", link: "/AdblockVPNGuide" }, { text: "๐Ÿค– Artificial Intelligence", link: "/AI" }, { text: "๐Ÿ“บ Movies / TV / Anime", link: "/VideoPiracyGuide" }, { text: "๐ŸŽต Music / Podcasts / Radio", link: "/AudioPiracyGuide" }, { text: "๐ŸŽฎ Gaming / Emulation", link: "/GamingPiracyGuide" }, { text: "๐Ÿ“— Books / Comics / Manga", link: "/ReadingPiracyGuide" }, { text: "๐Ÿ’พ Downloading", link: "/DownloadPiracyGuide" }, { text: "๐ŸŒ€ Torrenting", link: "/TorrentPiracyGuide" }, { text: "๐Ÿง  Educational", link: "/EDUPiracyGuide" }, { text: "๐Ÿ”ง Tools", link: "/TOOLSGuide" }, { text: "๐Ÿ“ท Image Tools", link: "/img-tools" }, { text: "๐Ÿ‘จโ€๐Ÿ’ป Developer Tools", link: "/DEVTools" }, { text: "๐Ÿ“ฑ Android / iOS", link: "/Android-iOSGuide" }, { text: "๐Ÿง Linux / MacOS", link: "/LinuxGuide" }, { text: "๐ŸŒ Non-English", link: "/Non-English" }, { text: "๐Ÿ“‚ Miscellaneous", link: "/MISCGuide" }, { text: "๐Ÿ”ž NSFW", link: "/NSFWPiracy" }, { text: "โš ๏ธ Unsafe Sites", link: "/UnsafeSites" }, { text: "๐Ÿ”‘ Base64", link: "/base64" }, { text: "๐Ÿ“ฆ Storage", link: "/STORAGE" }, ], socialLinks: [ { icon: "github", link: "https://github.com/fmhy/FMHYEdit" }, { icon: "discord", link: "https://discord.gg/Stz6y6NgNg" }, { icon: { svg: '', }, link: "https://reddit.com/r/FREEMEDIAHECKYEAH", }, ], ...pwa, }, }), );