ForcePilot/docs/latest/advanced/branding.md
Wenjie Zhang e04213f1e8 docs: 更新文档内容及修正描述
- 在branding.md中添加主题配置说明
- 修正knowledge-base.md中查询逻辑的描述
- 更新evaluation.md中字段说明和数据集构建提示
2025-12-20 14:50:42 +08:00

52 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 品牌自定义
系统支持完整的品牌信息自定义,包括 Logo、组织名称、版权信息等。
## 配置方法
### 1. 复制模板文件
```bash
cp src/config/static/info.template.yaml src/config/static/info.local.yaml
```
### 2. 编辑品牌信息
`src/config/static/info.local.yaml` 中配置:
<<< @/../src/config/static/info.template.yaml
### 3. 环境变量配置
`.env` 文件中指定配置文件路径
```bash
YUXI_BRAND_FILE_PATH=src/config/static/info.local.yaml
```
::: tip 配置优先级
`info.local.yaml` > `info.template.yaml`(默认)
:::
## 样式定制
系统配色主要保存在 `web/src/assets/css/base.css` 中:
- 替换 `--main-*` 相关变量即可改变配色
- 支持主题色、辅助色等完整定制
- 实时预览,无需重启服务
**主要变量**:
```css
:root {
--main-color: #1890ff; /* 主色调 */
--main-1000: #f0f2f5; /* 色板 */
--main-900: #e6f7ff; /* 色板 */
/* ... 其他色板 */
}
**此外**`web/src/stores/theme.js` 中也包含了主题相关的配置需要修改 `colorPrimary`可根据需要修改
```