|
|
@@ -15,8 +15,9 @@ export default defineAdditionalConfig({
|
|
|
|
|
|
sidebar: {
|
|
|
'/zh/guide/': { base: '/zh/guide/', items: sidebarGuide() },
|
|
|
- '/zh/api/description': { base: '/zh/api/description', items: descriptionApiGuide() },
|
|
|
- '/zh/api/scripts': { base: '/zh/api/scripts', items: scriptsApiGuide() },
|
|
|
+ '/zh/api/description': { base: '/zh/api/description/', items: descriptionApiGuide() },
|
|
|
+ '/zh/api/scripts': { base: '/zh/api/scripts/', items: scriptsApiGuide() },
|
|
|
+ '/zh/api/': { base: '/zh/api/', items: apiGuide() },
|
|
|
'/zh/examples/': { base: '/zh/examples/', items: examplesGuide() },
|
|
|
},
|
|
|
|
|
|
@@ -111,6 +112,20 @@ function sidebarGuide(): DefaultTheme.SidebarItem[] {
|
|
|
]
|
|
|
}
|
|
|
|
|
|
+function apiGuide(): DefaultTheme.SidebarItem[] {
|
|
|
+ return [
|
|
|
+ { text: 'API 手册', link: '/#api-reference' },
|
|
|
+ {
|
|
|
+ text: '下一步',
|
|
|
+ collapsed: false,
|
|
|
+ items: [
|
|
|
+ { text: '使用指南', link: '../guide/what-is-xmake' },
|
|
|
+ { text: '示例', link: '../examples/cpp/basic' },
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+}
|
|
|
+
|
|
|
function descriptionApiGuide(): DefaultTheme.SidebarItem[] {
|
|
|
return [
|
|
|
{ text: '接口规范', link: '/specification' },
|