Skip to content

Commit b08d81f

Browse files
docs: Add doc for Xinference (#1266)
Signed-off-by: Carson Yang <[email protected]>
1 parent bc0ac6d commit b08d81f

File tree

13 files changed

+420
-20
lines changed

13 files changed

+420
-20
lines changed

docSite/assets/docs/scss/custom/pages/_custom.scss

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
:root {
2+
--code-bg: rgba(0, 0, 0, 0.03);
3+
--code-color: rgba(14, 116, 144, 0.95);
4+
--inline-code-border: 0.5px solid var(--gray-400);
5+
6+
}
7+
8+
[data-dark-mode] {
9+
--code-bg: hsla(0, 2%, 14%, 1);
10+
--code-color: #f3f4f6ed;
11+
--inline-code-border: 0.5px solid var(--gray-600);
12+
}
13+
114
#content {
215
font-family: JetBrains Mono, LXGW WenKai Screen, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", "Ubuntu";
316
}
@@ -62,11 +75,33 @@ div.code-toolbar {
6275
z-index: 1;
6376
}
6477

78+
.docs-content .main-content pre code {
79+
padding: 0 2.5rem 1.25rem .9rem;
80+
}
81+
82+
.docs-content .main-content code {
83+
font-size: .875em;
84+
padding: 1px 2px;
85+
background: var(--code-bg);
86+
border: var(--inline-code-border);
87+
padding-top: 3px;
88+
padding-bottom: 3px;
89+
padding-left: 5px;
90+
padding-right: 5px;
91+
border-radius: .25rem;
92+
color: var(--code-color);
93+
}
94+
6595
li p {
6696
margin-top: 1rem !important;
6797
margin-bottom: 1rem;
6898
}
6999

100+
.docs-content .main-content ul > li {
101+
margin-top: .3rem !important;
102+
margin-bottom: .3rem;
103+
}
104+
70105
footer {
71106
height: 118px !important;
72107
}
Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
/**
2+
* Lotus Docs theme
3+
*
4+
* Adapted from a theme based on:
5+
* https://github.com/chriskempson/tomorrow-theme
6+
*
7+
* @author Colin Wilson <github.com/colinwilson>
8+
* @version 1.0
9+
*/
10+
11+
:root {
12+
--prism-code-bg: #faf9f8;
13+
--prism-code-scrollbar-thumb-color: var(--gray-400);
14+
--prism-color: #333;
15+
--prism-bg: #f0f0f0;
16+
--prism-highlight-bg: var(--blue-200);
17+
--prism-copy-bg: var(--gray-500);
18+
--prism-copy-hover-bg: var(--gray-700);
19+
--prism-copy-success-bg: var(--emerald-500);
20+
--prism-token-punctuation: #666;
21+
--prism-token-deleted: #2b6cb0;
22+
--prism-token-function-name: #3182bd;
23+
--prism-token-function: #c53030;
24+
--prism-token-number: var(--cardinal-600);
25+
--prism-token-symbol: #333;
26+
--prism-token-builtin: #1a202c;
27+
--prism-token-regex: #2f855a;
28+
--prism-token-variable: var(--yellow-700);
29+
--prism-token-url: #4fd1c5;
30+
--prism-token-inserted: #38a169;
31+
}
32+
33+
[data-dark-mode] {
34+
--prism-code-bg: var(--gray-900);
35+
--prism-code-scrollbar-thumb-color: var(--gray-600);
36+
--prism-color: #f5fbff;
37+
--prism-bg: #32325d;
38+
--prism-highlight-bg: var(--blue-400);
39+
--prism-copy-bg: var(--gray-400);
40+
--prism-copy-hover-bg: var(--white);
41+
--prism-copy-success-bg: var(--emerald-200);
42+
--prism-token-punctuation: #ccc;
43+
--prism-token-deleted: #7fd3ed;
44+
--prism-token-function-name: #6196cc;
45+
--prism-token-function: #fda3f3;
46+
--prism-token-number: var(--cardinal-200);
47+
--prism-token-symbol: #ffffff;
48+
--prism-token-builtin: #a4cdfe;
49+
--prism-token-regex: #7ec699;
50+
--prism-token-variable: var(--yellow-100);
51+
--prism-token-url: #67cdcc;
52+
--prism-token-inserted: green;
53+
}
54+
55+
code[class*="language-"],
56+
pre[class*="language-"] {
57+
color: var(--prism-color) !important;
58+
background: var(--prism-code-bg) !important;
59+
}
60+
61+
/* Code blocks */
62+
pre[class*="language-"] {
63+
// padding: 1em;
64+
// margin: .5em 0;
65+
overflow: auto;
66+
border-radius: 0 0 4px 4px;
67+
}
68+
69+
:not(pre) > code[class*="language-"],
70+
pre[class*="language-"] {
71+
background: var(--prism-bg);
72+
}
73+
74+
/* Inline code */
75+
:not(pre) > code[class*="language-"] {
76+
padding: .1em;
77+
border-radius: .3em;
78+
white-space: normal;
79+
}
80+
81+
.line-highlight:before,
82+
.line-highlight[data-end]:after {
83+
background-color: var(--prism-highlight-bg);
84+
}
85+
86+
[data-copy-state="copy"] span:empty::before {
87+
background-color: var(--prism-copy-bg);
88+
}
89+
90+
[data-copy-state="copy"] span:empty:hover::before {
91+
background-color: var(--prism-copy-hover-bg);
92+
}
93+
94+
[data-copy-state="copy-success"] span:empty::before {
95+
background-color: var(--prism-copy-success-bg);
96+
}
97+
98+
.token.comment,
99+
.token.block-comment,
100+
.token.prolog,
101+
.token.doctype,
102+
.token.cdata {
103+
color: #999;
104+
}
105+
106+
.token.punctuation {
107+
color: var(--prism-token-punctuation);
108+
}
109+
110+
.token.tag,
111+
.token.attr-name,
112+
.token.namespace,
113+
.token.deleted {
114+
color: var(--prism-token-deleted);
115+
}
116+
117+
.token.function-name {
118+
color: var(--prism-token-function-name);
119+
}
120+
121+
.token.boolean,
122+
.token.function {
123+
color: var(--prism-token-function);
124+
}
125+
126+
.token.number {
127+
color: var(--prism-token-number);
128+
}
129+
130+
.token.property,
131+
.token.class-name,
132+
.token.constant,
133+
.token.symbol {
134+
color: var(--prism-token-symbol);
135+
font-weight: 700;
136+
}
137+
138+
.token.selector,
139+
.token.important,
140+
.token.atrule,
141+
.token.keyword,
142+
.token.builtin {
143+
color: var(--prism-token-builtin);
144+
font-weight: 700;
145+
}
146+
147+
.token.string,
148+
.token.char,
149+
.token.attr-value,
150+
.token.regex {
151+
color: var(--prism-token-regex);
152+
}
153+
154+
.token.variable {
155+
color: var(--prism-token-variable);
156+
}
157+
158+
.token.operator,
159+
.token.entity,
160+
.token.url {
161+
color: var(--prism-token-url);
162+
}
163+
164+
.token.important,
165+
.token.bold {
166+
font-weight: bold;
167+
}
168+
.token.italic {
169+
font-style: italic;
170+
}
171+
172+
.token.entity {
173+
cursor: help;
174+
}
175+
176+
.token.inserted {
177+
color: var(--prism-token-inserted);
178+
}
181 KB
Loading
96.5 KB
Loading
184 KB
Loading

docSite/content/docs/development/custom-models/bge-rerank.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: '接入 bge-rerank 重排模型'
44
icon: 'sort'
55
draft: false
66
toc: true
7-
weight: 910
7+
weight: 920
88
---
99

1010
## 不同模型推荐配置

docSite/content/docs/development/custom-models/chatglm2-m3e.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: ' 将 FastGPT 接入私有化模型 ChatGLM2和m3e-large'
44
icon: 'model_training'
55
draft: false
66
toc: true
7-
weight: 930
7+
weight: 950
88
---
99

1010
## 前言

docSite/content/docs/development/custom-models/chatglm2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: ' 将 FastGPT 接入私有化模型 ChatGLM2-6B'
44
icon: 'model_training'
55
draft: false
66
toc: true
7-
weight: 910
7+
weight: 930
88
---
99

1010
## 前言

docSite/content/docs/development/custom-models/m3e.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: ' 将 FastGPT 接入私有化模型 M3E'
44
icon: 'model_training'
55
draft: false
66
toc: true
7-
weight: 920
7+
weight: 940
88
---
99

1010
## 前言

0 commit comments

Comments
 (0)