Skip to content

Commit de6e1e2

Browse files
committed
🔧 fix(docs): unblock Next build by repairing MDX + OpenAPI references
- Fix invalid MDX comment syntax in generated JA API doc (replace HTML comment with MDX-safe JSX comment) - Repair broken `<APIPage document={...}>` JSON references in translated EN/JA docs to prevent prerender crashes - Add missing `meta.json` files for EN/JA API roots to stabilize navigation/build - Add a repeatable repair script: `scripts/repair-openapi-mdx.ts` Build: `bun run build` now succeeds.
1 parent 672531c commit de6e1e2

File tree

17 files changed

+190
-19
lines changed

17 files changed

+190
-19
lines changed

content/docs/en/api/ai-model/completions/createcompletion.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ _openapi:
1414

1515
Create text completions based on a given prompt
1616

17-
<APIPage document={"openapi/generated/ai-model/Completions/post-v1-completions-createcompletion-383826474.json"} operations={[{"path":"/v1/completions","method":"post"}]} />
17+
<APIPage document={"openapi/generated/ai-model/补全(Completions/post-v1-completions-createcompletion-383826474.json"} operations={[{"path":"/v1/completions","method":"post"}]} />

content/docs/en/api/ai-model/images/qwen/createimage.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ _openapi:
1414

1515
Bailian qwen-image series image generation
1616

17-
<APIPage document={"openapi/generated/ai-model/Images/Tongyi Qianwen OpenAI Format/post-v1-images-generations-createimage-383833512.json"} operations={[{"path":"/v1/images/generations","method":"post"}]} />
17+
<APIPage document={"openapi/generated/ai-model/图像(Images)/通义千问OpenAI格式/post-v1-images-generations-createimage-383833512.json"} operations={[{"path":"/v1/images/generations","method":"post"}]} />
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"title": "AI Model API"
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"title": "Management API"
3+
}

content/docs/en/api/management/user-management/user-id-2fa-delete.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ _openapi:
1414

1515
👨‍💼 Admin Permissions Required (Admin)
1616

17-
<APIPage document={"openapi/generated/management/User Management/delete-api-user-id-2fa-delete-api-user-id-2fa-384083868.json"} operations={[{"path":"/api/user/{id}/2fa","method":"delete"}]} />
17+
<APIPage document={"openapi/generated/management/用户管理/delete-api-user-id-2fa-delete-api-user-id-2fa-384083868.json"} operations={[{"path":"/api/user/{id}/2fa","method":"delete"}]} />

content/docs/en/api/meta.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"title": "API"
3+
}

content/docs/en/guide/wiki/changelog.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Changelog
44

55
import { Callout } from 'fumadocs-ui/components/callout';
66

7-
<Callout type="warn" title="Version Log Information · Data updated at 2026-1-3 13:19:22">
7+
<Callout type="warn" title="Version Log Information · Data updated at 2026-1-4 23:18:11">
88
To view all historical versions, please visit the [GitHub Releases page](https://github.com/QuantumNous/new-api/releases). This page automatically fetches the latest update information from that page.
99
</Callout>
1010

content/docs/en/guide/wiki/special-thanks.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The development of New API would not be possible without the support and contrib
1010

1111
Below is a list of all developers who have contributed to the project. We thank them for their hard work and creativity!
1212

13-
<Callout title="Contributor Information · Data updated at 2026-1-3 13:19:22 (UTC+8)">
13+
<Callout title="Contributor Information · Data updated at 2026-1-4 23:18:11 (UTC+8)">
1414
The following contributor data is automatically retrieved from the [GitHub Contributors page](https://github.com/QuantumNous/new-api/graphs/contributors) for the top 50 contributors. The top three contributors are marked with gold, silver, and bronze borders respectively. If you would also like to contribute to the project, you are welcome to submit a Pull Request.
1515
</Callout>
1616

@@ -22,7 +22,7 @@ The following contributor data is automatically retrieved from the [GitHub Contr
2222
</div>
2323
<div className="flex flex-col">
2424
<a href="https://github.com/Calcium-Ion" target="_blank" rel="noopener noreferrer" className="font-medium no-underline mb-1">Calcium-Ion</a>
25-
<span className="text-sm text-muted-foreground">Contributions: 2306</span>
25+
<span className="text-sm text-muted-foreground">Contributions: 2308</span>
2626
</div>
2727
</div>
2828

@@ -64,7 +64,7 @@ The following contributor data is automatically retrieved from the [GitHub Contr
6464
</div>
6565
<div className="flex flex-col">
6666
<a href="https://github.com/seefs001" target="_blank" rel="noopener noreferrer" className="font-medium no-underline mb-1">seefs001</a>
67-
<span className="text-sm text-muted-foreground">Contributions: 283</span>
67+
<span className="text-sm text-muted-foreground">Contributions: 284</span>
6868
</div>
6969
</div>
7070

@@ -120,7 +120,7 @@ The following contributor data is automatically retrieved from the [GitHub Contr
120120
</div>
121121
<div className="flex flex-col">
122122
<a href="https://github.com/xyfacai" target="_blank" rel="noopener noreferrer" className="font-medium no-underline mb-1">xyfacai</a>
123-
<span className="text-sm text-muted-foreground">Contributions: 49</span>
123+
<span className="text-sm text-muted-foreground">Contributions: 50</span>
124124
</div>
125125
</div>
126126

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"title": "AIモデルAPI"
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"title": "管理API"
3+
}

0 commit comments

Comments
 (0)