Skip to content

Commit 7f88b47

Browse files
committed
Add detailed MCP docs and nav entries for en/zh-CN/zh-HK
1 parent 71550c6 commit 7f88b47

6 files changed

Lines changed: 298 additions & 640 deletions

File tree

docs/.vitepress/locales/en/nav.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export const nav = (): DefaultTheme.NavItem[] => {
55
{ text: 'Developer', link: '/', activeMatch: '^(/en)?/$' },
66
{ text: 'SDK', link: '/sdk', activeMatch: '^(/en)?/sdk' },
77
{ text: 'Docs', link: '/docs', activeMatch: `^(/en)?/docs(?!/(llm|mcp))` },
8-
{ text: 'MCP', link: '/docs/mcp', activeMatch: '^(/en)?/docs/mcp' },
98
{ text: 'LLM', link: '/docs/llm', activeMatch: '^(/en)?/docs/llm' },
9+
{ text: 'MCP', link: '/docs/mcp', activeMatch: '^(/en)?/docs/mcp' },
1010
{ text: 'Discuss & Feedback', link: 'https://github.com/longportapp/openapi/issues', target: '_blank' },
1111
]
1212
}

docs/.vitepress/locales/zh-CN/nav.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ export const nav = (lang: string): DefaultTheme.NavItem[] => {
44
return [
55
{ text: '开发者认证', link: `/${lang}/`, activeMatch: `^/${lang}/$` },
66
{ text: 'SDK', link: `/${lang}/sdk`, activeMatch: `^/${lang}/sdk` },
7-
{ text: '文档', link: `/${lang}/docs`, activeMatch: `^(/en)?/docs(?!/(llm|mcp))` },
8-
{ text: 'MCP', link: '/docs/mcp', activeMatch: '^(/en)?/docs/mcp' },
9-
{ text: 'LLM', link: '/docs/llm', activeMatch: '^(/en)?/docs/llm' },
7+
{ text: '文档', link: `/${lang}/docs`, activeMatch: `^/${lang}/docs(?!/(llm|mcp))` },
8+
{ text: 'LLM', link: `/${lang}/docs/llm`, activeMatch: `^/${lang}/docs/llm` },
9+
{ text: 'MCP', link: `/${lang}/docs/mcp`, activeMatch: `^/${lang}/docs/mcp` },
1010
{ text: '讨论 & 反馈', link: 'https://github.com/longportapp/openapi/issues', target: '_blank' },
1111
]
1212
}

docs/.vitepress/locales/zh-HK/nav.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ export const nav = (lang: string): DefaultTheme.NavItem[] => {
44
return [
55
{ text: '開發者認證', link: `/${lang}/`, activeMatch: `^/${lang}/$` },
66
{ text: 'SDK', link: `/${lang}/sdk`, activeMatch: `^/${lang}/sdk` },
7-
{ text: '文檔', link: `/${lang}/docs`, activeMatch: `^(/en)?/docs(?!/(llm|mcp))` },
8-
{ text: 'MCP', link: '/docs/mcp', activeMatch: '^(/en)?/docs/mcp' },
9-
{ text: 'LLM', link: '/docs/llm', activeMatch: '^(/en)?/docs/llm' },
7+
{ text: '文檔', link: `/${lang}/docs`, activeMatch: `^/${lang}/docs(?!/(llm|mcp))` },
8+
{ text: 'LLM', link: `/${lang}/docs/llm`, activeMatch: `^/${lang}/docs/llm` },
9+
{ text: 'MCP', link: `/${lang}/docs/mcp`, activeMatch: `^/${lang}/docs/mcp` },
1010
{ text: '討論 & 反饋', link: 'https://github.com/longportapp/openapi/issues', target: '_blank' },
1111
]
1212
}

0 commit comments

Comments
 (0)