Skip to content

Commit

Permalink
Merge pull request #124 from Ai00-X/docs
Browse files Browse the repository at this point in the history
UI & docs
  • Loading branch information
cgisky1980 authored May 24, 2024
2 parents e8aff0a + 9e72003 commit 807d754
Show file tree
Hide file tree
Showing 10 changed files with 1,603 additions and 18 deletions.
4 changes: 2 additions & 2 deletions assets/www/index.zip
Git LFS file not shown
86 changes: 73 additions & 13 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,23 @@ export default defineConfig({

themeConfig: {
// https://vitepress.dev/reference/default-theme-config

search: {
provider: 'local'
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/Ai00-X/ai00_server' }
],






},
locales: {
root: {
label: '简体中文',
lang: 'zh-CN', // optional, will be added as `lang` attribute on `html` tag
themeConfig: {
logo: '/logo.gif',
nav: [
{ text: '首页', link: '/' },
{ text: '快速上手', link: '/Simple-Usage' }
{ text: '指南', link: '/' },
{ text: '快速上手', link: '/guide/quick-start' }
],
lastUpdated: {
text: '最后更新于',
Expand All @@ -47,14 +45,76 @@ export default defineConfig({
},
sidebar: [
{
text: 'Ai00 文档',
text: '简介',
collapsed: false,
base: '/guide/',
items: [
{ text: '了解 Ai00', link: '/Introduction' },
{ text: '快速上手', link: '/Simple-Usage' },
{ text: '进阶功能', link: '/Ai00-Features' },
{ text: '常见问题', link: '/FAQ' }
{ text: '了解 Ai00', link: '/what-is-ai00' },
{ text: '快速上手',
collapsed: false,
items: [

{ text: '下载编译包', link: '/release' },
{ text: '从源码安装', link: '/source-install' },
{ text: '配置文件', link: '/config' },

]
},
]
},

{
text: '模型',
collapsed: false,
base: '/models/',
items: [
{ text: '模型命名规范', link: '/models-name' },
{ text: 'RWKV基座模型', link: '/rwkv-base' },
{ text: 'LoRA模型', link: '/lora-model' },
{ text: 'State模型', link: '/State-model' },
]
}
,
{
text: 'WebUI',
collapsed: false,
base: '/webui/',
items: [
{ text: 'WebUI配置', link: '/webui-config' },
{ text: 'chat例子', link: '/example-chat' },
{ text: 'write例子', link: '/example-write' },
{ text: '多线程例子', link: '/example-multithread' },
]
}
,
{
text: 'API',
collapsed: false,
base: '/api/',
items: [
{ text: 'API接口列表', link: '/openai' },
{ text: '调试API', link: '/debug-api' },
{
text: 'SDK调用',
base: 'sdk/',
collapsed: false,
items: [
{ text: 'Python SDK', link: '/python-sdk' },
{ text: 'JS SDK', link: '/js-sdk' },
{ text: 'Rust SDK', link: '/rust-sdk' },
]
},
]
},
{
text: '其他',
collapsed: false,
base: '/guide/',
items: [
{ text: '进阶功能', link: '/features' },
{ text: '常见问题', link: '/FAQ' }
]
},
],

},
Expand Down
26 changes: 26 additions & 0 deletions docs/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,29 @@
--docsearch-primary-color: var(--vp-c-brand-1) !important;
}

/* slim scroll bar for windows based web browsers - works on firefox */
* {
scrollbar-color: var(--vp-c-gutter) var(--vp-button-alt-bg);
scrollbar-width: thin;
}

/* slim scroll bar for windows based web browsers - works on chrome, edge, and safari */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}

/* scrolling handle */
::-webkit-scrollbar-thumb {
background: var(--vp-c-gutter);
}

/* handle on hover */
::-webkit-scrollbar-thumb:hover {
background: var(--vp-button-alt-hover-bg);
}

/* scrolling track/backgronund color */
::-webkit-scrollbar-track {
background: var(--vp-button-alt-bg);
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 5 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ layout: home
hero:
name: "Ai00 server"
text: "Just for RWKV"
tagline: 支持 Vulkan/Dx12/openGL 的并发推理服务器
tagline: 一个本地化、高性能、低消耗的推理服务器
actions:
- theme: brand
text: 快速上手!
link: /Simple-Usage
link: /guide/quick-start
- theme: alt
text: 什么是AI00_server?
link: /guide/what-is-ai00
- theme: alt
text: 下载安装
link: https://github.com/Ai00-X/ai00_server/releases
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"license": "MIT",
"devDependencies": {
"markdown-it-mathjax3": "^4.3.2",
"vitepress": "^1.0.0-rc.45"
"vitepress": "^1.2.2"
}
}
Loading

0 comments on commit 807d754

Please sign in to comment.