Skip to content

docs(zh): join CJK line wraps in rst_source - #214

Open
mintonight wants to merge 5 commits into
RLinf:mainfrom
mintonight:docs/zh-cjk-wrap
Open

mintonight wants to merge 5 commits into
RLinf:mainfrom
mintonight:docs/zh-cjk-wrap

Conversation

@mintonight

@mintonight mintonight commented Sep 22, 2026 •

Copy link
Copy Markdown

Description

Sphinx joins wrapped RST lines with a space. On Chinese pages that
splits compounds in the published HTML (for example 动作 原语, 近距 离,
一条 轨迹).

This PR only joins CJK-to-CJK wraps under docs/source-zh/rst_source/
(19 files, 409 wraps). List items, code blocks, and Latin-token
boundaries are unchanged.

Also on the flywheel page: drop the extra 首版 claim (English is
evaluation-only, not first version) and use the same
libero-data-flywheel label as the English page.

Jev 1.13 sampled 24 wraps across usage, development, overview,
installation, quickstart, and awesome_works; all scored noul ≥ 0.71
as unwanted spaces.

Testing

  • Re-scanned docs/source-zh/rst_source/**/*.rst: 0 remaining
    CJK-to-CJK paragraph wraps.
  • Compared flywheel wording with the English page.

Manual verification

Not needed. Confirm Chinese HTML no longer inserts a space between
CJK characters at the old wrap points.

Checklist

  • My code follows the code style of this project.
  • I have updated related documentation when needed.
  • All new and existing tests passed.

Sphinx inserts a space at RST line breaks. On Chinese pages that
split compounds such as 动作原语 and 近距离. Join CJK-to-CJK wraps
under docs/source-zh/rst_source. Also drop the extra 首版 claim on
the flywheel page and use the English libero-data-flywheel label.
@read-the-docs-community

read-the-docs-community Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

@wilburx813 wilburx813 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the contribution! Is this format problem only appers in chinese docs?

@mintonight

Copy link
Copy Markdown
Author

Thanks for the contribution! Is this format problem only appers in chinese docs?

是的,目前只在中文文档中发现这些问题

@read-the-docs-community

read-the-docs-community Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 RPent | 🛠️ Build #34731752 | 📁 Comparing 367353b against latest (eb269c8)

  🔍 Preview build  

2 files changed
± rst_source/usage/robocasa.html
± rst_source/usage/robotwin.html

@qurakchin qurakchin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the contribution!

There are 2 points to deal with:

  1. Could you please use some method such as suffix to collapse the overlong lines? The max width now is 262 in one line.
  2. Please check the whole pr. Some fixes may lost after rebase.
Image

Sphinx joins a normal RST newline with a space, so Chinese prose cannot
stay hard-wrapped as plain lines. Break those lines near 80 columns with
a trailing backslash. Docutils drops the backslash and the newline, and
the published text stays continuous.

After the merge from main, the RoboCasa and RoboTwin explore sections
still had CJK-to-CJK wraps, and add_primitive had one more. Those joins
now use the same continuation.

The previous 262-character line in robotwin.rst is gone. Code blocks,
directives, and unsplittable URLs are unchanged.
@mintonight

Copy link
Copy Markdown
Author

Addressed both points.

  1. Overlong lines are wrapped with a trailing backslash. Docutils removes that backslash together with the newline, so the HTML text is unchanged and source lines stay near 80 columns. The 262-character line in docs/source-zh/rst_source/usage/robotwin.rst is gone. Code blocks and URLs that cannot be split are left as they are.

  2. Rechecked the PR after the merge from main. The explore sections added to robocasa.rst and robotwin.rst still wrapped CJK onto CJK (重新 / 感知, 当前 / 本地, 获胜 / 命令). Those use the same backslash continuation. One older wrap in add_primitive.rst (跳过 / 它们) was still open and is fixed as well.

Rendered text is otherwise unchanged, including the flywheel wording.

The Chinese docs build treats Sphinx warnings as errors. A wrapped
list item continued with a tab, which docutils reports as unexpected
indentation. Keep that continuation at the same indent as the list item.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants