chore(docs): reorder imports across documentation files for consistency
All checks were successful
Lint / lint (push) Successful in 9m37s
All checks were successful
Lint / lint (push) Successful in 9m37s
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user