chore(docs): reorder imports across documentation files for consistency
All checks were successful
Lint / lint (push) Successful in 9m37s

This commit is contained in:
Mathis HERRIOT
2026-01-05 16:30:02 +01:00
parent 86543eeb4f
commit 6074917bfb
6 changed files with 10 additions and 10 deletions

View File

@@ -1,10 +1,10 @@
import { remarkMdxMermaid } from "fumadocs-core/mdx-plugins";
import {
defineConfig,
defineDocs,
frontmatterSchema,
metaSchema,
} from "fumadocs-mdx/config";
import { remarkMdxMermaid } from "fumadocs-core/mdx-plugins";
// You can customise Zod schemas for frontmatter and `meta.json` here
// see https://fumadocs.dev/docs/mdx/collections

View File

@@ -1,5 +1,5 @@
import { source } from "@/lib/source";
import { createFromSource } from "fumadocs-core/search/server";
import { source } from "@/lib/source";
export const { GET } = createFromSource(source, {
// https://docs.orama.com/docs/orama-js/supported-languages

View File

@@ -1,14 +1,14 @@
import { getPageImage, source } from "@/lib/source";
import {
DocsBody,
DocsDescription,
DocsPage,
DocsTitle,
} from "fumadocs-ui/layouts/docs/page";
import { notFound } from "next/navigation";
import { getMDXComponents } from "@/mdx-components";
import type { Metadata } from "next";
import { createRelativeLink } from "fumadocs-ui/mdx";
import type { Metadata } from "next";
import { notFound } from "next/navigation";
import { getPageImage, source } from "@/lib/source";
import { getMDXComponents } from "@/mdx-components";
export default async function Page(props: PageProps<"/docs/[[...slug]]">) {
const params = await props.params;

View File

@@ -1,6 +1,6 @@
import { source } from "@/lib/source";
import { DocsLayout } from "fumadocs-ui/layouts/docs";
import { baseOptions } from "@/lib/layout.shared";
import { source } from "@/lib/source";
export default function Layout({ children }: LayoutProps<"/docs">) {
return (

View File

@@ -1,7 +1,7 @@
import { getPageImage, source } from "@/lib/source";
import { generate as DefaultImage } from "fumadocs-ui/og";
import { notFound } from "next/navigation";
import { ImageResponse } from "next/og";
import { generate as DefaultImage } from "fumadocs-ui/og";
import { getPageImage, source } from "@/lib/source";
export const revalidate = false;

View File

@@ -1,7 +1,7 @@
"use client";
import { use, useEffect, useId, useState } from "react";
import { useTheme } from "next-themes";
import { use, useEffect, useId, useState } from "react";
export function Mermaid({ chart }: { chart: string }) {
const [mounted, setMounted] = useState(false);