Skip to content

Commit

Permalink
feat:elements结构标准
Browse files Browse the repository at this point in the history
  • Loading branch information
shijinn520 committed Apr 19, 2024
1 parent 319f032 commit f9f39db
Show file tree
Hide file tree
Showing 5 changed files with 668 additions and 8 deletions.
60 changes: 56 additions & 4 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,31 +1,83 @@
import { defineConfig } from 'vitepress'

export default defineConfig({
lang: 'zh-CN',
base: '/Karin',
title: 'Karin',
description: '基于 Kritor 和 noebots 进行开发的nodejs机器人框架',
themeConfig: {
siteTitle: '主页',
nav: [
{ text: '主页', link: '/' },
{ text: '快速开始', link: '/start' },
{ text: '开发文档', link: '/develop/index' }
{ text: '开发文档', link: '/develop/index' },
{ text: 'elements', link: '/develop/elements' }
],

sidebar: [
{
text: '导航栏',
items: [
{ text: '主页', link: '/' },
{ text: '快速开始', link: '/start' },
{ text: '事件', link: '/event/message' },
{ text: 'elements', link: '/develop/elements' },
{ text: '开发工具', link: '/develop/tools' },
{ text: '插件编写', link: '/develop/plugin' },
]
}
],

socialLinks: [
{ icon: 'github', link: 'https://github.com/KarinJS/Karin' }
]
],
outline: {
label: '页面导航'
},
search: {
provider: 'algolia',
options: {
appId: '...',
apiKey: '...',
indexName: '...',
placeholder: '搜索文档',
translations: {
button: {
buttonText: '搜索文档',
buttonAriaLabel: '搜索文档'
},
modal: {
searchBox: {
resetButtonTitle: '清除查询条件',
resetButtonAriaLabel: '清除查询条件',
cancelButtonText: '取消',
cancelButtonAriaLabel: '取消'
},
startScreen: {
recentSearchesTitle: '搜索历史',
noRecentSearchesText: '没有搜索历史',
saveRecentSearchButtonTitle: '保存至搜索历史',
removeRecentSearchButtonTitle: '从搜索历史中移除',
favoriteSearchesTitle: '收藏',
removeFavoriteSearchButtonTitle: '从收藏中移除'
},
errorScreen: {
titleText: '无法获取结果',
helpText: '你可能需要检查你的网络连接'
},
footer: {
selectText: '选择',
navigateText: '切换',
closeText: '关闭',
searchByText: '搜索提供者'
},
noResultsScreen: {
noResultsText: '无法找到相关结果',
suggestedQueryText: '你可以尝试查询',
reportMissingResultsText: '你认为该查询应该有结果?',
reportMissingResultsLinkText: '点击反馈'
}
}
}
}
}
}
})
Loading

0 comments on commit f9f39db

Please sign in to comment.