refactor: simplify documentation structure by removing multi-language i18n support and unused components

This commit is contained in:
Mathis HERRIOT
2026-01-05 10:16:29 +01:00
parent 91179199f7
commit 4d776c5c16
27 changed files with 57 additions and 445 deletions

View File

@@ -1,6 +0,0 @@
import { defineI18n } from "fumadocs-core/i18n";
export const i18n = defineI18n({
defaultLanguage: "en",
languages: ["en", "fr"],
});

View File

@@ -1,11 +1,9 @@
import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared";
import {i18n} from "@/lib/i18n";
export function baseOptions(): BaseLayoutProps {
return {
i18n,
nav: {
title: "MemeGoat",
title: "My App",
},
};
}

View File

@@ -1,11 +1,9 @@
import { docs } from "fumadocs-mdx:collections/server";
import { type InferPageType, loader } from "fumadocs-core/source";
import { lucideIconsPlugin } from "fumadocs-core/source/lucide-icons";
import {i18n} from "@/lib/i18n";
// See https://fumadocs.dev/docs/headless/source-api for more info
export const source = loader({
i18n,
baseUrl: "/docs",
source: docs.toFumadocsSource(),
plugins: [lucideIconsPlugin()],