docs(zh): translate Java example & dependency settings for v0.7#42
Open
tikazyq wants to merge 1 commit into
Open
docs(zh): translate Java example & dependency settings for v0.7#42tikazyq wants to merge 1 commit into
tikazyq wants to merge 1 commit into
Conversation
Two zh docs lagged the v0.7 EN refresh: - examples/java: had no zh translation at all (EN-only). Add the full Chinese version, mirroring the go/colly zh examples (prose, Javadoc, inline comments and log messages translated; code/selectors kept). - guides/system-settings/dependency: zh was a stale 3-line stub while EN had been expanded into a full system-settings page. Re-translate to match. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR updates the v0.7 Chinese documentation to align with the refreshed English content by filling two remaining translation gaps: the Java example page and the system-level dependency settings guide.
Changes:
- Added a full zh translation for the
examples/javapage (prose and comments translated; code/selectors/identifiers preserved). - Expanded the zh
guides/system-settings/dependencypage from a stub into a full translation matching the EN structure/content.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| packages/v0.7/i18n/zh/docusaurus-plugin-content-docs/current/guides/system-settings/dependency/index.md | Replaces the previous stub with a complete zh translation of the v0.7 dependency settings guide. |
| packages/v0.7/i18n/zh/docusaurus-plugin-content-docs/current/examples/java/index.md | Adds the missing zh Java spider example page, mirroring the EN content and structure. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ### 在 Crawlab 中创建爬虫 | ||
|
|
||
| 1. 在 Crawlab 网页界面中,导航至爬虫列表 | ||
| 2. 点击「新建爬虫」按钮 |
| - 名称:"book_scraper" | ||
| - 执行命令:`java -jar book-scraper.jar` | ||
| - 参数:(留空) | ||
| 4. 点击「确认」创建爬虫 |
Comment on lines
+467
to
+471
| 1. 导航至「依赖」页面 | ||
| 2. 在「环境」下拉列表中选择「Java」 | ||
| 3. 如果 Java 尚未安装,点击「安装环境」 | ||
| 4. 选择您想要安装 Java 的版本和节点 | ||
| 5. 点击「确认」 |
| ``` | ||
|
|
||
| 2. 在 Crawlab 中,导航至爬虫的详情页面 | ||
| 3. 点击「文件」标签页 |
Comment on lines
+499
to
+502
| 2. 点击「运行」按钮 | ||
| 3. 选择用于执行的目标节点 | ||
| 4. 如有需要,添加参数(例如 `{"category":"fiction"}`) | ||
| 5. 点击「确认」启动爬虫 |
| 4. 如有需要,添加参数(例如 `{"category":"fiction"}`) | ||
| 5. 点击「确认」启动爬虫 | ||
|
|
||
| 爬虫完成后,您可以在爬虫详情页面的「数据」标签页中查看采集到的图书数据。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two zh docs lagged the v0.7 English refresh and are filled in here:
examples/java— the English page had no Chinese translation at all (19 KB EN-only). Adds the full zh version, following the existinggo/collyzh examples: prose, Javadoc, inline comments and log messages translated; code, selectors and identifiers left intact. Code-fence and heading counts match the EN source (14 fences, 18 headings).guides/system-settings/dependency— zh was a stale 3-line stub while the EN page had been expanded into a full system-settings doc (ratio 0.21). Re-translated to match.Coverage audit of
packages/v0.7EN↔ZH: these were the only two real gaps; every other doc is at a normal 0.7–1.0 size ratio.🤖 Generated with Claude Code