mirror of
https://github.com/motajs/template.git
synced 2026-10-18 21:00:19 +08:00
docs(10-01): register intermediate tutorial nav entry and sidebar
- add nav entry 中级教程 -> /intermediate/data-vs-render - add sidebar['/intermediate/'] with 4 groups / 24 links (4/8/9/3)
This commit is contained in:
parent
e3d61ee14f
commit
ca3a61fb81
@ -17,8 +17,136 @@ export default defineConfig({
|
||||
themeConfig: {
|
||||
// https://vitepress.dev/reference/default-theme-config
|
||||
outline: [2, 3],
|
||||
nav: [],
|
||||
sidebar: {},
|
||||
nav: [
|
||||
{ text: '中级教程', link: '/intermediate/data-vs-render' }
|
||||
],
|
||||
sidebar: {
|
||||
'/intermediate/': [
|
||||
{
|
||||
text: '中级教程',
|
||||
collapsed: false,
|
||||
items: [
|
||||
{
|
||||
text: '概念与导航',
|
||||
collapsed: false,
|
||||
items: [
|
||||
{
|
||||
text: '数据端与渲染端',
|
||||
link: '/intermediate/data-vs-render'
|
||||
},
|
||||
{
|
||||
text: 'src 导览',
|
||||
link: '/intermediate/src-tour'
|
||||
},
|
||||
{
|
||||
text: '代码基础',
|
||||
link: '/intermediate/code-basics'
|
||||
},
|
||||
{ text: '钩子', link: '/intermediate/hooks' }
|
||||
]
|
||||
},
|
||||
{
|
||||
text: '基础接口',
|
||||
collapsed: false,
|
||||
items: [
|
||||
{
|
||||
text: '数据端总览',
|
||||
link: '/intermediate/data-state-overview'
|
||||
},
|
||||
{
|
||||
text: '勇士属性',
|
||||
link: '/intermediate/hero-attribute'
|
||||
},
|
||||
{
|
||||
text: '勇士道具',
|
||||
link: '/intermediate/hero-items'
|
||||
},
|
||||
{
|
||||
text: '勇士装备',
|
||||
link: '/intermediate/hero-equipment'
|
||||
},
|
||||
{
|
||||
text: '勇士位置',
|
||||
link: '/intermediate/hero-location'
|
||||
},
|
||||
{
|
||||
text: '地图结构',
|
||||
link: '/intermediate/map-structure'
|
||||
},
|
||||
{
|
||||
text: '地图图块',
|
||||
link: '/intermediate/map-tiles'
|
||||
},
|
||||
{
|
||||
text: 'Flag 变量',
|
||||
link: '/intermediate/flags'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
text: '战斗',
|
||||
collapsed: false,
|
||||
items: [
|
||||
{
|
||||
text: '战斗总览',
|
||||
link: '/intermediate/combat-overview'
|
||||
},
|
||||
{
|
||||
text: '怪物特殊属性',
|
||||
link: '/intermediate/enemy-specials'
|
||||
},
|
||||
{
|
||||
text: '光环',
|
||||
link: '/intermediate/enemy-aura'
|
||||
},
|
||||
{
|
||||
text: '查询效果',
|
||||
link: '/intermediate/enemy-query'
|
||||
},
|
||||
{
|
||||
text: '最终属性',
|
||||
link: '/intermediate/enemy-final'
|
||||
},
|
||||
{
|
||||
text: '伤害计算',
|
||||
link: '/intermediate/enemy-calculator'
|
||||
},
|
||||
{
|
||||
text: '地图伤害',
|
||||
link: '/intermediate/enemy-map-damage'
|
||||
},
|
||||
{
|
||||
text: '战斗脚本',
|
||||
link: '/intermediate/enemy-combat-script'
|
||||
},
|
||||
{
|
||||
text: '状态钩子',
|
||||
link: '/intermediate/enemy-status-hooks'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
text: '其他',
|
||||
collapsed: false,
|
||||
items: [
|
||||
{
|
||||
text: '自定义事件',
|
||||
link: '/intermediate/events'
|
||||
},
|
||||
{
|
||||
text: '录像指令',
|
||||
link: '/intermediate/replay-commands'
|
||||
},
|
||||
{
|
||||
text: '数据插件',
|
||||
link: '/intermediate/data-plugins'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
socialLinks: [
|
||||
{ icon: 'github', link: 'https://github.com/unanmed/HumanBreak' }
|
||||
],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user