refactor: simplify documentation structure by removing multi-language i18n support and unused components
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
import { defineI18n } from "fumadocs-core/i18n";
|
||||
|
||||
export const i18n = defineI18n({
|
||||
defaultLanguage: "en",
|
||||
languages: ["en", "fr"],
|
||||
});
|
||||
@@ -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",
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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()],
|
||||
|
||||
Reference in New Issue
Block a user