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 {
|
import {
|
||||||
defineConfig,
|
defineConfig,
|
||||||
defineDocs,
|
defineDocs,
|
||||||
frontmatterSchema,
|
frontmatterSchema,
|
||||||
metaSchema,
|
metaSchema,
|
||||||
} from "fumadocs-mdx/config";
|
} from "fumadocs-mdx/config";
|
||||||
import { remarkMdxMermaid } from "fumadocs-core/mdx-plugins";
|
|
||||||
|
|
||||||
// You can customise Zod schemas for frontmatter and `meta.json` here
|
// You can customise Zod schemas for frontmatter and `meta.json` here
|
||||||
// see https://fumadocs.dev/docs/mdx/collections
|
// see https://fumadocs.dev/docs/mdx/collections
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { source } from "@/lib/source";
|
|
||||||
import { createFromSource } from "fumadocs-core/search/server";
|
import { createFromSource } from "fumadocs-core/search/server";
|
||||||
|
import { source } from "@/lib/source";
|
||||||
|
|
||||||
export const { GET } = createFromSource(source, {
|
export const { GET } = createFromSource(source, {
|
||||||
// https://docs.orama.com/docs/orama-js/supported-languages
|
// https://docs.orama.com/docs/orama-js/supported-languages
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
import { getPageImage, source } from "@/lib/source";
|
|
||||||
import {
|
import {
|
||||||
DocsBody,
|
DocsBody,
|
||||||
DocsDescription,
|
DocsDescription,
|
||||||
DocsPage,
|
DocsPage,
|
||||||
DocsTitle,
|
DocsTitle,
|
||||||
} from "fumadocs-ui/layouts/docs/page";
|
} 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 { 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]]">) {
|
export default async function Page(props: PageProps<"/docs/[[...slug]]">) {
|
||||||
const params = await props.params;
|
const params = await props.params;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { source } from "@/lib/source";
|
|
||||||
import { DocsLayout } from "fumadocs-ui/layouts/docs";
|
import { DocsLayout } from "fumadocs-ui/layouts/docs";
|
||||||
import { baseOptions } from "@/lib/layout.shared";
|
import { baseOptions } from "@/lib/layout.shared";
|
||||||
|
import { source } from "@/lib/source";
|
||||||
|
|
||||||
export default function Layout({ children }: LayoutProps<"/docs">) {
|
export default function Layout({ children }: LayoutProps<"/docs">) {
|
||||||
return (
|
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 { notFound } from "next/navigation";
|
||||||
import { ImageResponse } from "next/og";
|
import { ImageResponse } from "next/og";
|
||||||
import { generate as DefaultImage } from "fumadocs-ui/og";
|
import { getPageImage, source } from "@/lib/source";
|
||||||
|
|
||||||
export const revalidate = false;
|
export const revalidate = false;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { use, useEffect, useId, useState } from "react";
|
|
||||||
import { useTheme } from "next-themes";
|
import { useTheme } from "next-themes";
|
||||||
|
import { use, useEffect, useId, useState } from "react";
|
||||||
|
|
||||||
export function Mermaid({ chart }: { chart: string }) {
|
export function Mermaid({ chart }: { chart: string }) {
|
||||||
const [mounted, setMounted] = useState(false);
|
const [mounted, setMounted] = useState(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user