Skip to content

Commit

Permalink
[feat]修改文档树形菜单的排列
Browse files Browse the repository at this point in the history
  • Loading branch information
veehou authored and wzpan committed Dec 24, 2021
1 parent 4679750 commit 92a6c33
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 117 deletions.
2 changes: 2 additions & 0 deletions docs/.vuepress/config.js
@@ -1,5 +1,6 @@
const { convertSummary } = require('./summary-sidebar');
const nodesdkConfig = require('../develop/nodesdk/config');
const pythonsdkConfig = require('../develop/pythonsdk/config');
const commonConfig = require('./common');
// openapi 外部文档隐藏的接口,注意不要携带.md后缀
// 废弃,请使用 summary-public 来约束可以展示的内容
Expand Down Expand Up @@ -115,6 +116,7 @@ module.exports = ctx => ({
text: 'SDK文档',
items: [
nodesdkConfig.nav,
pythonsdkConfig.nav,
{
text: 'GoSDK',
link: 'https://pkg.go.dev/github.com/tencent-connect/botgo',
Expand Down
234 changes: 117 additions & 117 deletions docs/develop/pythonsdk/config.js
@@ -1,121 +1,121 @@
module.exports = {
nav: {
text: 'PythonSDK',
link: '/develop/pythonsdk/',
},
sidebar: {
'/develop/pythonsdk/': [
'',
{
title: '术语',
collapsable: false,
sidebarDepth: 0,
children: [
{title: '用户对象(User)', path: 'model/user'},
{title: '频道对象(Guild)', path: 'model/guild'},
{title: '子频道对象(Channel)', path: 'model/channel'},
{title: '子频道权限对象(ChannelPermissions)', path: 'model/channel_permission'},
{title: '成员对象(Member)', path: 'model/member'},
{title: '频道身份组对象(Role)', path: 'model/role'},
{title: '消息对象(Message)', path: 'model/message'},
{title: '语音对象(Audio)', path: 'model/audio'},
],
},
{
title: 'Client API',
collapsable: false,
children: [
{
title: '用户 API',
collapsable: false,
sidebarDepth: 0,
children: [
'api/user/me',
'api/user/me_guilds'
],
},
{
title: '频道 API',
collapsable: false,
sidebarDepth: 0,
children: [
'api/guild/get_guild'
],
},
{
title: '子频道 API',
collapsable: false,
sidebarDepth: 0,
children: [
'api/channel/get_channel',
'api/channel/get_channels',
'api/channel/create_channel',
'api/channel/update_channel',
'api/channel/delete_channel',
],
},
{
title: '子频道权限 API',
collapsable: false,
sidebarDepth: 0,
children: [
'api/channel_permissions/get_channel_permissions',
'api/channel_permissions/update_channel_permissions',
],
},
{
title: '成员 API',
collapsable: false,
sidebarDepth: 0,
children: [
'api/member/get_guild_member',
'api/member/get_guild_members',
'api/member/delete_guild_member'
],
},
nav: {
text: 'PythonSDK',
link: '/develop/pythonsdk/',
},
sidebar: {
'/develop/pythonsdk/': [
'',
{
title: '术语',
collapsable: false,
sidebarDepth: 0,
children: [
{title: '用户对象(User)', path: 'model/user'},
{title: '频道对象(Guild)', path: 'model/guild'},
{title: '子频道对象(Channel)', path: 'model/channel'},
{title: '子频道权限对象(ChannelPermissions)', path: 'model/channel_permission'},
{title: '成员对象(Member)', path: 'model/member'},
{title: '频道身份组对象(Role)', path: 'model/role'},
{title: '消息对象(Message)', path: 'model/message'},
{title: '语音对象(Audio)', path: 'model/audio'},
],
},
{
title: 'Client API',
collapsable: false,
children: [
{
title: '用户 API',
collapsable: false,
sidebarDepth: 0,
children: [
'api/user/me',
'api/user/me_guilds'
],
},
{
title: '频道 API',
collapsable: false,
sidebarDepth: 0,
children: [
'api/guild/get_guild'
],
},
{
title: '子频道 API',
collapsable: false,
sidebarDepth: 0,
children: [
'api/channel/get_channel',
'api/channel/get_channels',
'api/channel/create_channel',
'api/channel/update_channel',
'api/channel/delete_channel',
],
},
{
title: '子频道权限 API',
collapsable: false,
sidebarDepth: 0,
children: [
'api/channel_permissions/get_channel_permissions',
'api/channel_permissions/update_channel_permissions',
],
},
{
title: '成员 API',
collapsable: false,
sidebarDepth: 0,
children: [
'api/member/get_guild_member',
'api/member/get_guild_members',
'api/member/delete_guild_member'
],
},

{
title: '频道身份组 API',
collapsable: false,
sidebarDepth: 0,
children: [
'api/guild/get_guild_roles',
'api/guild/create_guild_role',
'api/guild/update_guild_role',
'api/guild/delete_guild_role',
'api/guild/create_guild_member_role',
'api/guild/delete_guild_member_role',
],
},
{
title: '消息 API',
collapsable: false,
sidebarDepth: 0,
children: [
'api/message/get_message',
'api/message/get_messages',
'api/message/post_message',
'api/message/post_ark_message',
'api/message/message_template',
'api/message/message_format',
],
},
{
title: '音频 API',
collapsable: false,
sidebarDepth: 0,
children: [
'api/audio/post_audio'
],
},
],
},
{
title: 'WebSocket API',
collapsable: false,
sidebarDepth: 0,
children: [{title: '事件监听', path: 'websocket/listen_events.md'}],
},
{
title: '频道身份组 API',
collapsable: false,
sidebarDepth: 0,
children: [
'api/guild/get_guild_roles',
'api/guild/create_guild_role',
'api/guild/update_guild_role',
'api/guild/delete_guild_role',
'api/guild/create_guild_member_role',
'api/guild/delete_guild_member_role',
],
},
{
title: '消息 API',
collapsable: false,
sidebarDepth: 0,
children: [
'api/message/get_message',
'api/message/get_messages',
'api/message/post_message',
'api/message/post_ark_message',
'api/message/message_template',
'api/message/message_format',
],
},
{
title: '音频 API',
collapsable: false,
sidebarDepth: 0,
children: [
'api/audio/post_audio'
],
},
],
},
},
{
title: 'WebSocket API',
collapsable: false,
sidebarDepth: 0,
children: [{title: '事件监听', path: 'websocket/listen_events.md'}],
},
],
},
};

0 comments on commit 92a6c33

Please sign in to comment.