refactor(docs) remove math and package-install as code block languages

This commit is contained in:
javayhu 2025-06-16 00:43:27 +08:00
parent b07be5fab4
commit 3b741b3b98
12 changed files with 23 additions and 23 deletions

View File

@ -99,7 +99,7 @@ title: Hello World
Run the app in development mode and see http://localhost:3000/docs.
```package-install
```mdx
npm run dev
```

View File

@ -99,7 +99,7 @@ title: Hello World
在开发模式下运行应用程序并查看 http://localhost:3000/docs。
```package-install
```mdx
npm run dev
```
@ -250,4 +250,4 @@ export const source = loader({
## 了解更多
刚来这里?别担心,我们欢迎您的问题。
刚来这里?别担心,我们欢迎您的问题。

View File

@ -14,7 +14,7 @@ author: mkdirs
Create a new Next.js application with `create-next-app`, and install required packages.
```package-install
```mdx
fumadocs-ui fumadocs-core
```

View File

@ -14,7 +14,7 @@ author: mkdirs
使用 `create-next-app` 创建一个新的 Next.js 应用程序,并安装所需的包。
```package-install
```mdx
fumadocs-ui fumadocs-core
```
@ -193,4 +193,4 @@ WORKDIR /app
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .npmrc* source.config.ts ./
```
这确保 Fumadocs MDX 在构建期间可以访问您的配置文件。
这确保 Fumadocs MDX 在构建期间可以访问您的配置文件。

View File

@ -353,12 +353,12 @@ Some optional plugins you can enable.
Write math equations with TeX.
````md
```math
```mdx
f(x) = x * e^{2 pi i \xi x}
```
````
```math
```mdx
f(x) = x * e^{2 pi i \xi x}
```
@ -369,12 +369,12 @@ To enable, see [Math Integration](/docs/math).
Generate code blocks for installing packages via package managers (JS/Node.js).
````md
```package-install
```mdx
npm i next -D
```
````
```package-install
```mdx
npm i next -D
```

View File

@ -46,6 +46,6 @@ Since the design system is built on Tailwind CSS, you can customise it [with CSS
If none of them suits you, Fumadocs CLI is a tool to install Fumadocs UI components and layouts to your codebase, similar to Shadcn UI. Allowing you to fully customise Fumadocs UI:
```package-install
```mdx
npx fumadocs add
```

View File

@ -46,6 +46,6 @@ Fumadocs UI 还提供了样式化组件,用于交互式示例以增强您的
如果这些都不适合您Fumadocs CLI 是一个工具,可以将 Fumadocs UI 组件和布局安装到您的代码库中,类似于 Shadcn UI。允许您完全自定义 Fumadocs UI
```package-install
```mdx
npx fumadocs add
```
```

View File

@ -95,7 +95,7 @@ title: Hello World
Run the app in development mode and see http://localhost:3000/docs.
```package-install
```mdx
npm run dev
```

View File

@ -95,7 +95,7 @@ title: Hello World
在开发模式下运行应用程序并查看 http://localhost:3000/docs。
```package-install
```mdx
npm run dev
```
@ -250,4 +250,4 @@ export const source = loader({
## 了解更多
刚来这里?别担心,我们欢迎您的问题。
刚来这里?别担心,我们欢迎您的问题。

View File

@ -9,7 +9,7 @@ description: Create a new fumadocs project from scratch.
Create a new Next.js application with `create-next-app`, and install required packages.
```package-install
```mdx
fumadocs-ui fumadocs-core
```

View File

@ -9,7 +9,7 @@ description: 从零开始创建一个新的 Fumadocs 项目
使用 `create-next-app` 创建一个新的 Next.js 应用程序,并安装所需的包。
```package-install
```mdx
fumadocs-ui fumadocs-core
```
@ -188,4 +188,4 @@ WORKDIR /app
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .npmrc* source.config.ts ./
```
这确保 Fumadocs MDX 在构建期间可以访问您的配置文件。
这确保 Fumadocs MDX 在构建期间可以访问您的配置文件。

View File

@ -348,12 +348,12 @@ Some optional plugins you can enable.
Write math equations with TeX.
````md
```math
```mdx
f(x) = x * e^{2 pi i \xi x}
```
````
```math
```mdx
f(x) = x * e^{2 pi i \xi x}
```
@ -364,12 +364,12 @@ To enable, see [Math Integration](/docs/math).
Generate code blocks for installing packages via package managers (JS/Node.js).
````md
```package-install
```mdx
npm i next -D
```
````
```package-install
```mdx
npm i next -D
```