tachiyomi-website/website/src/.vitepress/config/index.ts
Soitora ca560632b8
Attempt to move website to git subdirectory
Better readability as there's a bunch of files that are not related to each other in the root directory
2023-07-26 01:12:38 +02:00

36 lines
978 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { defineConfig, loadEnv } from "vitepress";
import markdown from "./markdown";
import themeConfig from "./theme";
import head from "./head";
import "./icons";
import generateMeta from "./hooks/generateMeta";
import generateSitemap from "./hooks/generateSitemap";
import generateFeed from "./hooks/generateFeed";
const hostname: string = "https://kodo.moe";
export default ({ mode }) => {
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) };
return defineConfig({
appearance: "dark",
lastUpdated: true,
cleanUrls: true,
base: process.env.VITE_BASE || "/",
lang: "en-US",
title: "Tachiyomi",
description: "Read your favorite manga, webtoons, comics, and more easier than ever on your Android.",
head,
markdown,
themeConfig: themeConfig,
transformHead: async (context) => generateMeta(context, hostname),
buildEnd: async (context) => {
generateSitemap(context, hostname);
generateFeed(context, hostname);
},
});
};