docs: restore generated Cordis core API
This commit is contained in:
@@ -15,6 +15,7 @@ const sectionOrder = [
|
||||
'实战',
|
||||
'概念',
|
||||
'生成参考',
|
||||
'Cordis API',
|
||||
'数据结构',
|
||||
'开发手册',
|
||||
'Guide',
|
||||
@@ -23,6 +24,7 @@ const sectionOrder = [
|
||||
'Practice',
|
||||
'Concepts',
|
||||
'Generated reference',
|
||||
'Cordis Core API',
|
||||
'Data structures',
|
||||
'Cookbook',
|
||||
]
|
||||
|
||||
@@ -237,6 +237,21 @@ const reference = mirroredPages([
|
||||
section: { root: '生成参考', en: 'Generated reference' },
|
||||
order,
|
||||
})),
|
||||
...([
|
||||
['context.md', 'Context', 'Context'],
|
||||
['events.md', 'Events', 'Events'],
|
||||
['fiber.md', 'Fiber', 'Fiber'],
|
||||
['registry.md', 'Plugin Registry', 'Plugin Registry'],
|
||||
['service.md', 'Service', 'Service'],
|
||||
] as const).map(([file, rootLabel, enLabel], order): MirroredPage => ({
|
||||
source: `docs/cordis-catalog/core/${file}`,
|
||||
route: `reference/cordis-api/${file}`,
|
||||
contentLocale: 'en-US',
|
||||
label: { root: rootLabel, en: enLabel },
|
||||
sidebar: { root: 'zh-reference', en: 'en-reference' },
|
||||
section: { root: 'Cordis API', en: 'Cordis Core API' },
|
||||
order,
|
||||
})),
|
||||
...([
|
||||
['core.md', '核心数据结构', 'Core data structures'],
|
||||
['scope.md', '作用域', 'Scopes'],
|
||||
|
||||
Reference in New Issue
Block a user