Home / File/ source.config.ts — ui Source File

source.config.ts — ui Source File

Architecture documentation for source.config.ts, a typescript file in the ui codebase. 3 imports, 0 dependents.

File typescript 3 imports

Entity Profile

Dependency Diagram

graph LR
  c2eb99c9_8387_53b2_613e_5027675ba840["source.config.ts"]
  45cba8cb_d778_bf6d_7fcf_c480b7e3f20f["config"]
  c2eb99c9_8387_53b2_613e_5027675ba840 --> 45cba8cb_d778_bf6d_7fcf_c480b7e3f20f
  53ade66d_7ed1_0b38_a4dd_077fa1540f17["rehype-pretty-code"]
  c2eb99c9_8387_53b2_613e_5027675ba840 --> 53ade66d_7ed1_0b38_a4dd_077fa1540f17
  7edb604f_23f1_911f_0682_b46c871a68d6["highlight-code"]
  c2eb99c9_8387_53b2_613e_5027675ba840 --> 7edb604f_23f1_911f_0682_b46c871a68d6
  style c2eb99c9_8387_53b2_613e_5027675ba840 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { defineConfig, defineDocs } from "fumadocs-mdx/config"
import rehypePrettyCode from "rehype-pretty-code"

import { transformers } from "@/lib/highlight-code"

export default defineConfig({
  mdxOptions: {
    rehypePlugins: (plugins) => {
      plugins.shift()
      plugins.push([
        rehypePrettyCode,
        {
          theme: {
            dark: "github-dark",
            light: "github-light-default",
          },
          transformers,
        },
      ])

      return plugins
    },
  },
})

export const docs = defineDocs({
  dir: "content/docs",
  // TODO: Fix this when we upgrade to zod v4.
  // docs: {
  //   schema: frontmatterSchema.extend({
  //     links: z.optional(
  //       z.object({
  //         doc: z.string().optional(),
  //         api: z.string().optional(),
  //       })
  //     ),
  //   }),
  // },
})

Dependencies

  • config
  • highlight-code
  • rehype-pretty-code

Frequently Asked Questions

What does source.config.ts do?
source.config.ts is a source file in the ui codebase, written in typescript.
What does source.config.ts depend on?
source.config.ts imports 3 module(s): config, highlight-code, rehype-pretty-code.
Where is source.config.ts in the architecture?
source.config.ts is located at apps/v4/source.config.ts (directory: apps/v4).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free