chore: bump version to 0.8.2
Bump VERSION, the frontend and docs-site packages, the Helm appVersion and the README badges, plus the docs pages that quote the current version.main
parent
eb888d0d3d
commit
5468e7c191
|
|
@ -31,7 +31,7 @@
|
|||
<img src="https://img.shields.io/badge/License-MIT-ffffff?labelColor=d4eaf7&color=2e6cc4" alt="License">
|
||||
</a>
|
||||
<a href="./CHANGELOG.md">
|
||||
<img alt="Version" src="https://img.shields.io/badge/version-0.8.0-2e6cc4?labelColor=d4eaf7">
|
||||
<img alt="Version" src="https://img.shields.io/badge/version-0.8.2-2e6cc4?labelColor=d4eaf7">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
<img src="https://img.shields.io/badge/License-MIT-ffffff?labelColor=d4eaf7&color=2e6cc4" alt="License">
|
||||
</a>
|
||||
<a href="./CHANGELOG.md">
|
||||
<img alt="版本" src="https://img.shields.io/badge/version-0.8.0-2e6cc4?labelColor=d4eaf7">
|
||||
<img alt="版本" src="https://img.shields.io/badge/version-0.8.2-2e6cc4?labelColor=d4eaf7">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
<img src="https://img.shields.io/badge/License-MIT-ffffff?labelColor=d4eaf7&color=2e6cc4" alt="License">
|
||||
</a>
|
||||
<a href="./CHANGELOG.md">
|
||||
<img alt="バージョン" src="https://img.shields.io/badge/version-0.8.0-2e6cc4?labelColor=d4eaf7">
|
||||
<img alt="バージョン" src="https://img.shields.io/badge/version-0.8.2-2e6cc4?labelColor=d4eaf7">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
<img src="https://img.shields.io/badge/License-MIT-ffffff?labelColor=d4eaf7&color=2e6cc4" alt="License">
|
||||
</a>
|
||||
<a href="./CHANGELOG.md">
|
||||
<img alt="버전" src="https://img.shields.io/badge/version-0.8.0-2e6cc4?labelColor=d4eaf7">
|
||||
<img alt="버전" src="https://img.shields.io/badge/version-0.8.2-2e6cc4?labelColor=d4eaf7">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "knowledage-base",
|
||||
"version": "0.8.0",
|
||||
"version": "0.8.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "knowledage-base",
|
||||
"version": "0.8.0",
|
||||
"version": "0.8.2",
|
||||
"dependencies": {
|
||||
"@microsoft/fetch-event-source": "^2.0.1",
|
||||
"@novnc/novnc": "^1.7.0",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "knowledage-base",
|
||||
"version": "0.8.0",
|
||||
"version": "0.8.2",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ description: |
|
|||
with document parsing, vector search, and LLM integration.
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "v0.8.0"
|
||||
appVersion: "v0.8.2"
|
||||
kubeVersion: ">=1.25.0-0"
|
||||
home: https://github.com/Tencent/WeKnora
|
||||
icon: https://raw.githubusercontent.com/Tencent/WeKnora/main/docs/images/logo.png
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ make docker-build-frontend
|
|||
|
||||
## 六、Helm 部署(helm/)
|
||||
|
||||
`helm/Chart.yaml`:apiVersion v2,chart 名 `weknora`,appVersion 跟随版本(如 v0.8.0),要求 Kubernetes >= 1.25.0。
|
||||
`helm/Chart.yaml`:apiVersion v2,chart 名 `weknora`,appVersion 跟随版本(如 v0.8.2),要求 Kubernetes >= 1.25.0。
|
||||
|
||||
Chart 内包含五个组件:`app`(`wechatopenai/weknora-app`)、`frontend`(`wechatopenai/weknora-ui`)、`docreader`、`postgresql`(ParadeDB 镜像,chart 默认 `paradedb/paradedb:v0.18.9-pg17`,与 Compose 的版本不同)、`redis`(`redis:7-alpine`),并可选启用 `minio` 与 `neo4j`。
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ WeKnora 的 Web 前端是一个基于 **Vue 3 + TypeScript + Vite** 的单页应
|
|||
|
||||
## 技术栈总览
|
||||
|
||||
依据 `frontend/package.json`(版本 0.8.0):
|
||||
依据 `frontend/package.json`(版本 0.8.2):
|
||||
|
||||
| 类别 | 选型 | 版本 | 说明 |
|
||||
| --- | --- | --- | --- |
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ WeKnora 由三个可独立开发的进程组成:
|
|||
| --- | --- | --- | --- |
|
||||
| 主后端 `app` | `cmd/server` + `internal/` | Go | **Go 1.26.0**(`go.mod` 中 `go 1.26.0`),需 CGO(DuckDB、sqlite-vec 绑定) |
|
||||
| 文档解析服务 `docreader` | `docreader/` | Python + gRPC | **Python >= 3.10.18**(`docreader/pyproject.toml` 中 `requires-python`),依赖用 **uv** 管理(仓库含 `uv.lock`,Docker 内 `uv sync --locked`) |
|
||||
| 前端 `frontend` | `frontend/` | Node.js + Vue 3 | Node 22 系(`devDependencies` 含 `@tsconfig/node22`、`@types/node ^22`),Vite 7 + TypeScript ~6.0 + Vue 3.5 + TDesign,版本号 `0.8.0` |
|
||||
| 前端 `frontend` | `frontend/` | Node.js + Vue 3 | Node 22 系(`devDependencies` 含 `@tsconfig/node22`、`@types/node ^22`),Vite 7 + TypeScript ~6.0 + Vue 3.5 + TDesign,版本号 `0.8.2` |
|
||||
| CLI | `cli/`(独立 Go module) | Go | Go 1.26(`.github/workflows/cli.yml` 矩阵 `go: ['1.26']`) |
|
||||
|
||||
推荐额外安装的开发工具:
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ npm run package:site
|
|||
|
||||
```bash
|
||||
sudo mkdir -p /srv/www/weknora/releases/20260915-1
|
||||
sudo tar -xzf weknora-site-v0.8.0.tar.gz -C /srv/www/weknora/releases/20260915-1
|
||||
sudo tar -xzf weknora-site-v0.8.2.tar.gz -C /srv/www/weknora/releases/20260915-1
|
||||
```
|
||||
|
||||
解压后该目录下应直接有 `index.html`、`docs/`、`_next/`,无需再套一层 `static-site/`。
|
||||
|
|
@ -78,8 +78,8 @@ sudo nginx -s reload
|
|||
在仓库根目录执行:
|
||||
|
||||
```bash
|
||||
docker build -t weknora-site:0.8.0 website-docs
|
||||
docker run -d --name weknora-site --restart unless-stopped -p 8080:80 weknora-site:0.8.0
|
||||
docker build -t weknora-site:0.8.2 website-docs
|
||||
docker run -d --name weknora-site --restart unless-stopped -p 8080:80 weknora-site:0.8.2
|
||||
```
|
||||
|
||||
访问 `http://服务器地址:8080/`。如使用域名和 HTTPS,让现有反向代理转发到该端口即可。镜像内已经包含官网、文档和 Nginx 路由配置。
|
||||
|
|
@ -87,12 +87,12 @@ docker run -d --name weknora-site --restart unless-stopped -p 8080:80 weknora-si
|
|||
容器内的 Nginx 默认监听 80 端口,可以用环境变量 `WEBSITE_NGINX_PORT` 修改,无需重新构建。使用 `--network host`,或者部署平台要求容器监听指定端口时,这样设置:
|
||||
|
||||
```bash
|
||||
docker run -d --name weknora-site --restart unless-stopped -e WEBSITE_NGINX_PORT=8080 -p 8080:8080 weknora-site:0.8.0
|
||||
docker run -d --name weknora-site --restart unless-stopped -e WEBSITE_NGINX_PORT=8080 -p 8080:8080 weknora-site:0.8.2
|
||||
```
|
||||
|
||||
只是想换一个对外端口时,改 `-p` 左侧的宿主机端口就够了,例如 `-p 9000:80`。
|
||||
|
||||
也可以只复制 `website-docs/` 目录,在该目录执行 `docker build -t weknora-site:0.8.0 .`。构建上下文必须是 `website-docs/`,宿主机的依赖、旧构建产物和部署包由 `.dockerignore` 排除。
|
||||
也可以只复制 `website-docs/` 目录,在该目录执行 `docker build -t weknora-site:0.8.2 .`。构建上下文必须是 `website-docs/`,宿主机的依赖、旧构建产物和部署包由 `.dockerignore` 排除。
|
||||
|
||||
从旧文档镜像迁移时,将容器端口映射或反向代理目标端口从 `8081` 改为 `80`(宿主机端口可自行选择,例如 `-p 8081:80`)。域名根路径 `/` 现在提供官网,`/docs/` 提供文档,反向代理需覆盖整个站点并保留请求路径。容器使用 Nginx 官方镜像的默认入口,无需额外的 `docker-entrypoint.sh`。
|
||||
|
||||
|
|
@ -100,7 +100,7 @@ docker run -d --name weknora-site --restart unless-stopped -e WEBSITE_NGINX_PORT
|
|||
|
||||
```bash
|
||||
cd website-docs
|
||||
npm run test:docker -- weknora-site:0.8.0
|
||||
npm run test:docker -- weknora-site:0.8.2
|
||||
```
|
||||
|
||||
## 本地开发
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
0.8.0
|
||||
0.8.2
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "weknora-docs-site",
|
||||
"version": "0.8.0",
|
||||
"version": "0.8.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "weknora-docs-site",
|
||||
"version": "0.8.0",
|
||||
"version": "0.8.2",
|
||||
"devDependencies": {
|
||||
"jsdom": "^28.0.0",
|
||||
"mermaid": "^11.16.0",
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
"vue": "^3.5.13",
|
||||
"jsdom": "^28.0.0"
|
||||
},
|
||||
"version": "0.8.0",
|
||||
"version": "0.8.2",
|
||||
"engines": {
|
||||
"node": "^22.13.0 || >=24.0.0"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { spawnSync } from 'node:child_process';
|
|||
import { randomUUID } from 'node:crypto';
|
||||
import { setTimeout } from 'node:timers/promises';
|
||||
|
||||
const image = process.argv[2] || 'weknora-site:0.8.0';
|
||||
const image = process.argv[2] || 'weknora-site:0.8.2';
|
||||
const name = `weknora-site-test-${randomUUID()}`;
|
||||
function docker(...args) {
|
||||
const result = spawnSync('docker', args, { encoding: 'utf8' });
|
||||
|
|
|
|||
Loading…
Reference in New Issue