Skip to content

refactor: 为小白用户规划一套手把手部署视频教程脚本和可选配套文档更新 (#1267) - #1268

Closed
ZhuLinsen wants to merge 5 commits into
mainfrom
autocode/issue-1267-task
Closed

refactor: 为小白用户规划一套手把手部署视频教程脚本和可选配套文档更新 (#1267)#1268
ZhuLinsen wants to merge 5 commits into
mainfrom
autocode/issue-1267-task

Conversation

@ZhuLinsen

@ZhuLinsen ZhuLinsen commented May 11, 2026

Copy link
Copy Markdown
Owner

PR Type

  • fix
  • feat
  • refactor
  • docs
  • chore
  • test

Background And Problem

Scope Of Change

  • docs/CHANGELOG.md
  • docs/DEPLOY.md
  • docs/DEPLOY_EN.md
  • docs/INDEX.md
  • docs/INDEX_EN.md
  • docs/deploy-beginner-video-script.md

Documentation And Changelog

  • 已同步更新文档/变更记录:docs/CHANGELOG.md, docs/DEPLOY.md, docs/DEPLOY_EN.md, docs/INDEX.md, docs/INDEX_EN.md, docs/deploy-beginner-video-script.md

Issue Link

Closes #1267

Verification Commands And Results

git diff --check

关键输出/结论 / Key output & conclusion:

  • diff-check:PASS

Compatibility And Risk

  • Low:涉及 docs/CHANGELOG.md, docs/DEPLOY.md, docs/DEPLOY_EN.md, docs/INDEX.md, docs/INDEX_EN.md, docs/deploy-beginner-video-script.md,未识别额外兼容性风险。
  • 前提假设:
    • Issue 仅提出视频教程诉求,未指定部署平台、目标环境、视频发布渠道或教程形式。
    • 更小修复路径是内容制作与说明补充,而不是修改应用代码、secrets、workflow 或部署逻辑。
    • 如果维护者希望用 PR 承载,可只新增或更新 docs 下的部署教程文档、视频脚本或检查清单,并在 docs/CHANGELOG.md 记录文档变更。
    • README.md 仅在需要增加首页级部署入口链接时少量更新,否则不更新。

Rollback Plan

  • git revert <merge-commit> 回滚本 PR 提交,重点确认 docs/CHANGELOG.md, docs/DEPLOY.md, docs/DEPLOY_EN.md, docs/INDEX.md 恢复正常。

Acceptance Criteria

  • 明确教程覆盖的部署路径,例如本地运行、Docker 部署、GitHub Actions 定时任务或云服务器部署中的一种或多种。
  • 产出面向新手的步骤大纲,包含环境准备、配置 .env、安装依赖、启动服务、验证运行、常见错误排查。
  • 所有命令、路径、配置项与仓库当前脚本和文档保持一致。
  • 如新增配套文档,docs/CHANGELOG.md 的 [Unreleased] 段按扁平格式增加一条文档记录。

Checklist

  • 本 PR 有明确动机和业务价值 / This PR has a clear motivation and value
  • 已提供可复现的验证命令与结果 / Reproducible verification commands and results are included
  • 已评估兼容性与风险 / Compatibility and risk have been assessed
  • 已提供回滚方案 / A rollback plan is provided
  • 已同步更新相关文档与 docs/CHANGELOG.md,并在 PR 描述中说明文档落点 / Relevant docs and docs/CHANGELOG.md are updated, and the documentation location is stated in this PR

Copilot AI review requested due to automatic review settings May 11, 2026 16:40
@github-actions github-actions Bot added documentation Improvements or additions to documentation size/L labels May 11, 2026
@github-actions

github-actions Bot commented May 11, 2026

Copy link
Copy Markdown

🤖 自动审查报告

项目 结果
📊 变更文件 6 个
➕ 新增行数 236 行
➖ 删除行数 0 行
🔍 静态检查 ✅ 通过
🧠 AI 审查 ✅ 已完成

📁 修改的文件

  • 📝 docs/CHANGELOG.md (+1/-0)
  • 📝 docs/DEPLOY.md (+6/-0)
  • 📝 docs/DEPLOY_EN.md (+4/-0)
  • 📝 docs/INDEX.md (+2/-0)
  • 📝 docs/INDEX_EN.md (+2/-0)
  • 🆕 docs/deploy-beginner-video-script.md (+221/-0)

🧠 AI 代码审查意见

结论: Ready to Merge


结构化结果:

  • 必要性
    • 通过。PR 明确指出是为了解决“为小白用户规划一套手把手部署视频教程脚本和可选配套文档更新”的问题。这具有明确的业务价值,能够降低新用户上手门槛,提升用户体验。
  • 关联性
  • 类型
    • 建议类型docs。本次变更主要涉及文档内容的增加和现有文档的链接更新,因此 docs 类型会比 refactor 更精确地反映变更性质。然而,这不构成阻断。
  • 描述完整性
    • 完整。PR 描述包含了背景、问题、影响范围、文件列表、验证命令与结果、兼容性风险评估、回滚方案、验收标准以及自查清单,且所有勾选框均已选中。CI 检查结果也已提供。
  • 风险级别
    • 。所有变更均在 docs/ 目录下,不涉及任何代码逻辑、CI/CD 配置或生产环境配置的修改。+236 / -0 的 diff 也表明是纯新增和少量修改。兼容性与回滚方案均已评估并提供。

必改项 (无)


建议项

  1. PR 类型建议: 考虑到所有变更都发生在 docs/ 目录,且主要内容是新增文档和更新文档链接,建议将 PR Type 从 refactor 更改为 docs,以便更准确地分类变更。这不影响合入。
  2. 英文文档 DEPLOY_EN.md 的国际化标记:
    • docs/DEPLOY_EN.md 中,新增的“Beginner Recommended Route”部分指向的文档 deploy-beginner-video-script.md 明确说明是“Chinese-Only”。
    • 建议在 docs/DEPLOY_EN.md 的对应链接旁边也加上 <sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> (Chinese-only) 这样的标记,与 docs/INDEX_EN.md 中的处理方式保持一致,从而更清晰地告知英文用户该教程目前仅有中文版本。这有助于避免潜在的用户困惑。
    • 例如,将 ## Beginner Recommended Route (Chinese-Only) 下的链接修改为:
      [step-by-step beginner deployment video script](deploy-beginner-video-script.md) <sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> (Chinese-only)

💡 提示: 请确保代码已通过本地测试,并遵循项目代码规范。

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dabb379c4a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

```bash
docker-compose -f ./docker/docker-compose.yml ps
docker-compose -f ./docker/docker-compose.yml logs -f --tail=80
docker-compose -f ./docker/docker-compose.yml exec -u dsa stock-analyzer python main.py --help

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the Compose service name for exec commands

When a beginner follows the Docker Compose path, this exec command will target stock-analyzer, but Docker Compose exec expects a service name (docker compose exec [OPTIONS] SERVICE COMMAND [ARGS...], per Docker's CLI reference). In docker/docker-compose.yml the service is analyzer; stock-analyzer is only container_name, so these copied commands (including the later --no-notify and ss examples) will fail with no such service instead of validating or running the analysis.

Useful? React with 👍 / 👎.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

该 PR 面向首次部署的新手用户,新增“一条龙”部署录屏脚本,并在文档中心与部署指南中补充入口,同时在变更记录里登记对应文档更新,帮助用户更快完成从 0 到可运行的部署路径。

Changes:

  • 新增新手向的部署视频教程脚本文档(含操作清单与排障段落)。
  • docs/DEPLOY.mddocs/INDEX.md 增加新手入口链接,提升可发现性。
  • docs/CHANGELOG.md[Unreleased] 中补充文档变更记录。

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.

File Description
docs/INDEX.md 在文档中心新增“新手首次部署”与脚本入口,提升导航可达性
docs/DEPLOY.md 在部署指南开头新增新手推荐路线入口,降低首次部署门槛
docs/deploy-beginner-video-script.md 新增面向录屏的视频脚本与实操 checklist
docs/CHANGELOG.md [Unreleased] 中记录新增新手部署脚本文档与入口变更

Comment thread docs/CHANGELOG.md Outdated
- [修复] Pytdx 股票名称查询在全部服务器不可达时会短暂冷却,并在冷却期内跳过重复探测,减少无效拨号与告警噪音。
- [修复] 调度模式未显式设置 `SCHEDULE_RUN_IMMEDIATELY` 时,会继续继承 `RUN_IMMEDIATELY` 的运行时覆盖语义,避免被持久化 `.env` 别名反向覆盖。
- [文档] 补充 Longbridge 冷却开关与调度启动兼容语义说明。
- [文档] 新增“面向新手的部署手把手视频教程”脚本文档,并补充文档中心/部署指南入口。
```bash
docker-compose -f ./docker/docker-compose.yml ps
docker-compose -f ./docker/docker-compose.yml logs -f --tail=80
docker-compose -f ./docker/docker-compose.yml exec -u dsa stock-analyzer python main.py --help
**方式 A:容器内执行一次**

```bash
docker-compose -f ./docker/docker-compose.yml exec -u dsa stock-analyzer python main.py --no-notify
Comment thread docs/deploy-beginner-video-script.md Outdated
#### 症状 3:端口访问失败

```bash
docker-compose -f ./docker/docker-compose.yml exec stock-analyzer ss -lntp | grep 8000
Comment thread docs/DEPLOY.md
## 🎬 小白推荐路线:手把手视频脚本

如果你是第一次部署,建议优先按本视频教程先完成:
[【小白手把手部署脚本】](deploy-beginner-video-script.md)
Comment thread docs/INDEX.md
| --- | --- | --- |
| 快速了解项目能做什么 | [README](../README.md) | [完整配置与部署指南](full-guide.md) |
| 第一次把项目跑起来 | [README](../README.md) | [完整配置与部署指南](full-guide.md) |
| 第一次部署(小白友好) | [部署指南](DEPLOY.md) | [小白手把手部署视频脚本](deploy-beginner-video-script.md) |
Comment thread docs/INDEX.md
| 文档 | 内容 |
| --- | --- |
| [部署指南](DEPLOY.md) | 服务器部署、Docker、systemd、Supervisor 等部署方式 |
| [小白手把手部署视频脚本](deploy-beginner-video-script.md) | 从零到会跑的录屏版流程,含环境准备、启动验证和排障 |

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 44c872bf94

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/deploy-beginner-video-script.md Outdated
#### 症状 3:端口访问失败

```bash
docker-compose -f ./docker/docker-compose.yml exec server ss -lntp | grep ${API_PORT:-8000}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use a listener check available in the image

When a beginner reaches the port-access troubleshooting path for the shipped Docker image, this command runs ss inside the server container, but docker/Dockerfile only installs gcc/curl/gosu/wkhtmltopdf/font libraries and does not install iproute2, which provides ss. The copied check will therefore fail with ss: not found and won't tell the user whether ${API_PORT:-8000} is listening; use an available health/curl/Python check or add iproute2 to the image.

Useful? React with 👍 / 👎.

@ZhuLinsen ZhuLinsen left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

评审结论

  • 必要性:通过。面向首次部署用户补充手把手视频脚本和文档入口,符合 Issue #1267 的诉求。
  • 是否有对应 issue:有,Closes #1267
  • PR 类型:docs。实际改动均为 docs/* 文档与变更记录,PR 描述勾选为 refactor 不准确。
  • description 完整性:基本完整。已说明背景、范围、验证、风险和回滚;但 PR Type 应改为 docs。
  • 是否可直接合入:可。当前 CI 为 success,改动为低风险文档类,未发现阻断性问题。

🤖 此回复由 OpenReview Bot 自动生成,仅供参考。如有疑问请 @维护者。

@ZhuLinsen
ZhuLinsen force-pushed the autocode/issue-1267-task branch from 196614e to 350b8ef Compare May 12, 2026 13:13

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 350b8ef2ff

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/deploy-beginner-video-script.md Outdated
#### 症状 3:端口访问失败

```bash
docker-compose -f ./docker/docker-compose.yml exec server sh -lc "curl -sS -o /dev/null -w 'HTTP %{http_code}\n' http://127.0.0.1:${API_PORT:-8000}/"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Defer API_PORT expansion to the container shell

When a user customizes API_PORT only in .env (the documented path), this troubleshooting command expands ${API_PORT:-8000} in the host shell before docker-compose exec runs. Because .env values are not normally exported into the host shell, the check curls port 8000 even though the Compose server service may be listening on the .env port, producing a false failure during port-access debugging; quote or escape the $ so sh -lc expands it inside the container.

Useful? React with 👍 / 👎.

@ZhuLinsen ZhuLinsen left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

评审结论

  • 必要性:通过。新增面向首次部署用户的视频教程脚本和入口,符合 Issue #1267 的用户价值。
  • 是否有对应 issue:有,Closes #1267
  • PR 类型:docs。实际改动均为 docs/* 文档与变更记录,PR 描述勾选为 refactor 不准确。
  • description 完整性:不完整。背景、范围、验证、风险、回滚基本齐全,但 PR Type 与实际改动不一致。
  • 是否可直接合入:不可。需先修正新手教程中的容器服务名示例,避免用户按文档执行时直接失败。

主要问题

  1. [Correctness blocker] docs/deploy-beginner-video-script.md 新增的 Docker Compose 示例使用了 analyzer 服务执行 python main.py --helppython main.py --no-notify,但现有 docs/DEPLOY.md 中同类手动执行命令使用的是 stock-analyzer 服务。该 PR 的目标用户是“小白用户”,错误服务名会导致教程关键验收步骤不可执行,建议统一为仓库当前 Compose 文档中的服务名,或补充确认实际 docker/docker-compose.yml 中确实存在对应服务。

🤖 此回复由 OpenReview Bot 自动生成,仅供参考。如有疑问请 @维护者。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

能不能出个专为小白手把手教的视频部署教程

2 participants