Skip to content

Commit 28020eb

Browse files
committed
Add more warnings for Code Download Zip
People download zip files from the Github Code Download Zip file option, which is bad. Added more warning to make it obvious.
1 parent 306c935 commit 28020eb

File tree

8 files changed

+49
-8
lines changed

8 files changed

+49
-8
lines changed

docs/faq.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ Error calling the chat endpoint
151151
## 网页/客户端相关
152152

153153
### Web 显示 `{"detail": "Not Found"}` 怎么办
154+
155+
![](img/faq/detail-not-found.jpg)
156+
154157
- 前端代码没有被拉取到本地。出现这个报错说明你没有获取到完整的项目代码。请在项目目录下运行 `git submodule update --init --recursive` 来拉取项目代码。
155158
- 详细请参考 [快速开始/1. 获取项目代码](quick-start#1-获取项目代码) 中提到的两种获取项目代码的方式。
156159

docs/img/faq/detail-not-found.jpg

6.17 KB
Loading

docs/img/git-code-zip.jpg

348 KB
Loading

docs/quick-start.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ source ~/.zshrc # 如果使用 zsh
257257

258258
更多 uv 安装方法参考:[Installing uv](https://docs.astral.sh/uv/getting-started/installation/)
259259

260-
## 手动部署指南
260+
## 部署指南
261261

262262
### 1. 获取项目代码
263263

@@ -271,7 +271,11 @@ source ~/.zshrc # 如果使用 zsh
271271

272272
<Tabs groupId="code-clone-method">
273273
<TabItem value="release" label="下载稳定的 release 包">
274-
前往最新的 [release 页面](https://github.com/Open-LLM-VTuber/Open-LLM-VTuber/releases),下载长得像 `Open-LLM-VTuber-v1.x.x.zip` 的 zip 文件。
274+
从项目的 [**Release 页面**](https://github.com/Open-LLM-VTuber/Open-LLM-VTuber/releases),下载长得像 `Open-LLM-VTuber-v1.x.x.zip` 的 zip 文件。
275+
276+
:::warning
277+
注意,是 Release 页面,**不是**项目主页上面那个 Code 按钮的 "Download ZIP" 选项。请不要用 "Download ZIP" 按钮下载项目代码。
278+
:::
275279

276280
如果你想要使用桌宠模式或是桌面版本,你可以顺手再下载以 `open-llm-vtuber-electron` 开头的文件。windows 用户下载 exe,macOS 用户下载 dmg文件。这个是桌面版本的客户端。之后等后端配置完成并启动之后,这个electron 版前端可以启动桌宠模式。
277281

@@ -281,8 +285,10 @@ source ~/.zshrc # 如果使用 zsh
281285
使用 git 拉取时,请确保网络畅通。中国大陆用户可能需要开启代理。
282286
:::
283287

284-
:::info
285-
`v1.0.0` 开始,前端代码 (用户界面) 已被拆分到独立仓库中。我们建立了构建流程,并通过 git submodule 将前端代码链接到主仓库的 `frontend` 目录下,因此在克隆仓库时要像下面这样添加 `--recursive`
288+
:::warning
289+
git clone 命令后面必须加上 `--recursive` flag。
290+
291+
这是因为自 `v1.0.0` 开始,前端代码 (用户界面) 已被拆分到独立仓库中。我们建立了构建流程,通过 git submodule 将前端代码链接到主仓库的 `frontend` 目录下,因此在克隆仓库时要添加 `--recursive` 的 flag,否则会缺失前端代码,造成 [浏览器显示 Detail Not Found 的错误](faq.md#web-显示-detailnotfound-怎么办)
286292
:::
287293

288294
```bash
@@ -297,6 +303,17 @@ source ~/.zshrc # 如果使用 zsh
297303

298304
</TabItem>
299305

306+
<TabItem value="git-zip" label="不要从 Code 按钮下载 zip">
307+
![don't do this](./img/git-code-zip.jpg)
308+
309+
**不要** 从 GitHub 主页上,那个绿色的 "Code" 按钮那边,下载 Zip 文件,或是直接用那边提供的克隆命令,获取项目代码。
310+
311+
为什么不能从 Code 按钮下载 Zip 文件?
312+
- 从 Code 按钮中获取的 Zip 文件 **不包含 Git 信息**。这是 Github 自己生成的,我没法控制。
313+
- 本项目前端由 submodule 链接,如果你从这个按钮下载 Zip 文件,你会拿不到前端代码,导致 [浏览器显示 Detail Not Found 的错误](faq.md#web-显示-detailnotfound-怎么办)
314+
- 本项目更新机制依赖 Git,因此缺失 Git 信息**会导致你无法使用更新功能**
315+
</TabItem>
316+
300317
</Tabs>
301318

302319

i18n/en/docusaurus-plugin-content-docs/current/faq.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ If you absolutely must run two Open-LLM-VTuber backends simultaneously, or if an
138138
## Web/Client Related
139139

140140
### What to do if Web displays `{"detail": "Not Found"}`?
141+
142+
![](img/faq/detail-not-found.jpg)
143+
141144
- The frontend code hasn't been pulled to local. This error appears when you haven't obtained the complete project code. Please run `git submodule update --init --recursive` in the project directory to pull the project code.
142145
- For details, please refer to the two ways of obtaining project code mentioned in [Quick Start/1. Get Project Code](quick-start#1-get-project-code).
143146

6.17 KB
Loading
348 KB
Loading

i18n/en/docusaurus-plugin-content-docs/current/quick-start.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,15 +242,19 @@ brew install uv
242242

243243
For more uv installation methods, refer to: [Installing uv](https://docs.astral.sh/uv/getting-started/installation/)
244244

245-
## Manual Deployment Guide
245+
## Deployment Guide
246246

247247
### 1. Get the Project Code
248248

249249
There are two methods to acquire the project code.
250250

251251
<Tabs groupId="code-clone-method">
252252
<TabItem value="release" label="Download Stable Release from GitHub">
253-
Visit the latest [release page](https://github.com/Open-LLM-VTuber/Open-LLM-VTuber/releases) and download the ZIP file named similar to `Open-LLM-VTuber-v1.x.x.zip`.
253+
Go to our [**Release page**](https://github.com/Open-LLM-VTuber/Open-LLM-VTuber/releases) and download the ZIP file that looks like `Open-LLM-VTuber-v1.x.x.zip` from the **release page**.
254+
255+
:::warning
256+
Note that you need to download from the **Release Page**, **NOT the "Download ZIP" option from the "Code" button on the GitHub main page**. Don't do that!
257+
:::
254258

255259
If you want Desktop Pet Mode or desktop client version, you can also download files starting with `open-llm-vtuber-electron` - Windows users download the exe file, while the macOS users download the dmg file. This desktop client can launch Pet Mode after you configured backend and successfully start the backend server.
256260

@@ -260,8 +264,10 @@ There are two methods to acquire the project code.
260264
Ensure stable network connection when using Git. Mainland China users may need to use a proxy.
261265
:::
262266

263-
:::info
264-
Starting from `v1.0.0`, frontend code (user interface) has been moved to a separate repository. We've established build workflows and linked frontend code via git submodule to the `frontend` directory. Adding the `--recursive` flag is therefore required in git clone command.
267+
:::warning
268+
The `--recursive` flag is REQUIRED for the git clone command.
269+
270+
This is because, starting from `v1.0.0`, frontend code (user interface) has been moved to a separate repository. We've established build workflows and linked frontend code via git submodule to the `frontend` directory. Adding the `--recursive` flag is therefore required in git clone command. Without the `--recursive` flag, you will run into the problem that [the web displays "Detail: Not found"](faq.md#what-to-do-if-web-displays-detail-not-found)
265271
:::
266272

267273
```bash
@@ -275,6 +281,18 @@ There are two methods to acquire the project code.
275281
For Desktop Pet Mode or desktop client, visit [Open-LLM-VTuber-Web Releases](https://github.com/Open-LLM-VTuber/Open-LLM-VTuber-Web/releases/latest) and download `open-llm-vtuber-electron` files - Windows users download the exe file, while the macOS users download the dmg file. This desktop client can launch Pet Mode after you configured backend and successfully start the backend server.
276282

277283
</TabItem>
284+
285+
<TabItem value="git-zip" label="Don't download the ZIP from the Code button">
286+
![don't do this](./img/git-code-zip.jpg)
287+
288+
Please **DO NOT** download the ZIP file from the green "Code" button on the GitHub main page, nor use the clone command provided there to get the project code.
289+
290+
Why can't I download the ZIP file from the Code button?
291+
- The ZIP file obtained from the Code button **does not contain Git information**. This is generated by GitHub, and I have no control over it.
292+
- The front end of this project is linked by submodules. If you download the ZIP file from this button, you will not get the front-end code, which will cause [the browser to display a "Detail Not Found" error](faq.md#what-to-do-if-the-web-shows-detailnotfound).
293+
- The update mechanism of this project relies on Git, so missing Git information **will prevent you from using the update function**.
294+
</TabItem>
295+
278296
</Tabs>
279297

280298

0 commit comments

Comments
 (0)