mirror of
https://github.com/Pumpkin-MC/Pumpkin-Website.git
synced 2025-04-04 10:25:16 +00:00
* Change VitePress config to add locales * Move English documentation into new Directory * Started Dutch translations * Add Translation instructions * Set cleanUrls (Removes .html in URLs) * Ignore typo's for files containing translations * Add Dutch translations * Simplify config structure * Fix main page redirects for Dutch translation * Updated small indent issue --------- Co-authored-by: khalaor-gh <khalaor4@gmail.com>
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
import { defineConfig } from "vitepress";
|
|
import { en } from "./en";
|
|
import { nl } from "./nl";
|
|
|
|
// https://vitepress.dev/reference/site-config
|
|
export default defineConfig({
|
|
title: "Pumpkin",
|
|
|
|
cleanUrls: true,
|
|
rewrites: {
|
|
'en/:rest*': ':rest*'
|
|
},
|
|
|
|
locales: {
|
|
root: {
|
|
label: "English", ...en
|
|
},
|
|
nl: {
|
|
label: "Dutch", ...nl
|
|
}
|
|
},
|
|
|
|
head: [
|
|
["link", { rel: "shortcut icon", href: "/assets/favicon.ico" }],
|
|
["link", { rel: "icon", type: "image/png", href: "/assets/favicon-96x96.png", sizes: "96x96" }],
|
|
["link", { rel: "icon", type: "image/svg+xml", href: "/assets/favicon.svg" }],
|
|
["link", { rel: "apple-touch-icon", href: "/assets/apple-touch-icon.png", sizes: "180x180" }],
|
|
["link", { rel: "manifest", href: "/assets/site.webmanifest" }],
|
|
|
|
["link", { rel: "canonical", href: "https://pumpkinmc.org/" }],
|
|
|
|
["meta", { name: "apple-mobile-web-app-title", content: "Pumpkin" }],
|
|
|
|
["script", { async: '', src: "https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX" }],
|
|
['script', {}, `window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
|
|
gtag('config', 'G-QK7NXQQ2ZP');`]
|
|
|
|
],
|
|
});
|