Skip to content

[codex] Finish repo docs navigation and Chinese manual closure#91

Open
zhoubot wants to merge 1 commit intomainfrom
codex/cursor-trieve-doc-nav-finish
Open

[codex] Finish repo docs navigation and Chinese manual closure#91
zhoubot wants to merge 1 commit intomainfrom
codex/cursor-trieve-doc-nav-finish

Conversation

@zhoubot
Copy link
Copy Markdown
Collaborator

@zhoubot zhoubot commented Apr 19, 2026

What changed

This PR packages the outstanding local documentation work from the Cursor repo-README and navigation lane.

It finishes a broad documentation pass across repo-level entrypoints, the PTO ISA manual source tree, and the mirrored MkDocs source tree. The main goals are:

  • polish repo and folder README entrypoints
  • close Chinese navigation paths where Chinese equivalents exist
  • repair stale relative links introduced during the manual-tree refactor
  • keep the manual source-of-truth and rendered docs navigation aligned

Why

The local worktree had accumulated a large set of doc and README updates, but readers could still hit dead links or get bounced into English pages from Chinese entrypoints. There was also stale duplicated MkDocs source content left in a half-migrated state.

This PR lands the whole local documentation pass together so the navigation model, source tree, and rendered site stop drifting independently.

Scope highlights

  • repo-level README polishing: root, docs/, demos/, include/pto/, kernels/, tests/
  • PTO ISA Chinese manual expansion across tile/vector/comm/scalar pages
  • communication and matrix/tile/vector doc consistency fixes
  • dead-link cleanup for modified markdown pages
  • removal of stale mirrored files under docs/mkdocs/src/docs/isa/ that no longer match the maintained source tree
  • addition of docs/isa/vector/micro-instruction-summary.md

Validation

  • ./.venv-mkdocs/bin/python -m pre_commit run --files <staged-files>
  • git diff --check --cached
  • ./.venv-mkdocs/bin/python -m mkdocs build -f docs/mkdocs/mkdocs.yml --strict
  • changed-file markdown link scan with zero missing targets
  • changed-file Chinese closure scan with zero zh -> en regressions where _zh equivalents exist

Risks

  • This is a broad docs-only change and includes removal of stale mirrored files under docs/mkdocs/src/docs/isa/, so reviewer attention should focus on documentation layout and publishing behavior rather than runtime code
  • .omx/ local tool state is intentionally excluded from the PR

This packages the outstanding local documentation work from the Cursor
README/navigation lane together with the Chinese ISA cleanup already in
progress. The result is a repo-wide pass over README entrypoints,
docs/isa source pages, and the mirrored MkDocs source tree so the
reader path is more consistent and the modified pages stop sending
users into dead or unnecessary English-only jumps.

Constraint: Submit the full local documentation worktree except local tool state under .omx
Constraint: Keep docs/isa as the source-of-truth manual while preserving the existing MkDocs build output shape
Rejected: Split the local work into smaller PRs | would strand half-finished navigation and bilingual closure fixes across the repo
Confidence: medium
Scope-risk: broad
Reversibility: clean
Directive: Keep Chinese entrypoints closed under Chinese navigation where equivalents exist, and do not reintroduce stale ops/README paths after the manual tree split
Tested: python -m pre_commit run on staged files; git diff --check --cached; mkdocs strict build; changed-file markdown link scan; changed-file zh-to-en closure scan
Not-tested: GitHub Actions on the rebased PR branch; live GitHub Pages after this new branch lands
@zhoubot zhoubot force-pushed the codex/cursor-trieve-doc-nav-finish branch from fdcd4e8 to 5eb67f8 Compare April 19, 2026 06:17
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request significantly restructures and standardizes the documentation for the PTO Tile Library, including the main README, demo guides, and the comprehensive ISA reference. The changes introduce a clearer five-layer documentation structure, task-based navigation, and a consistent format for all instruction pages. Feedback from the review identifies several typos in instruction names (specifically 'TSCATTER' being misspelled as 'TSCATTLER') and a broken anchor link in the Chinese README.

Comment thread README_zh.md
[![License](https://img.shields.io/badge/License-CANN%20Open%20Software%20License%202.0-blue.svg)](LICENSE)
[![Platform](https://img.shields.io/badge/Platform-Ascend%20A2%20%7C%20A3%20%7C%20A5%20%7C%20CPU-green.svg)](#-平台支持)
[![Docs](https://img.shields.io/badge/Docs-文档-blue.svg)](docs/README_zh.md)
[![Platform](https://img.shields.io/badge/Platform-Ascend%20A2%20%7C%20A3%20%7C%20A5%20%7C%20CPU-green.svg)](#-平台支持)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The anchor link #-平台支持 appears to be incorrect. Since the target header was changed to ## 平台支持 (line 156), the anchor should be #平台支持. The current link with a hyphen will likely break navigation.

Suggested change
[![Platform](https://img.shields.io/badge/Platform-Ascend%20A2%20%7C%20A3%20%7C%20A5%20%7C%20CPU-green.svg)](#-平台支持)
[! [Platform](https://img.shields.io/badge/Platform-Ascend%20A2%20%7C%20A3%20%7C%20A5%20%7C%20CPU-green.svg)](#平台支持)

Comment thread docs/README_zh.md
Tile 指令集
├── 同步与配置 → tassign、tsync、tsetf32mode、tsetfmatrix、tset_img2col_*、tsubview、tget_scale_addr
├── 逐元素 Tile-Tile → tadd、tsub、tmul、tdiv、tmin、tmax、tcmp、tcvt、tsel、tlog、trecip、texp、tsqrt、trsqrt、trem、tfmod、tabs、tand、tor、txor、tnot、tneg、tprelu、taddc、tsubc、tshl、tshr
├── Tile-标量与立即数 → tadds、tsubs、tmuls、tdi等等vs、tcmps、tsels、texpands、tfmods、trems、tands、tors、txors、tshls、tshrs、tlrelu、taddsc、tsubsc
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Typo in the instruction list: tdi等等vs should be tdivs. This appears to be an IME conversion error where "v" was replaced with "等等" (etc.).

Suggested change
├── Tile-标量与立即数 → tadds、tsubs、tmuls、tdi等等vs、tcmps、tsels、texpands、tfmods、trems、tands、tors、txors、tshls、tshrs、tlrelu、taddsc、tsubsc
├── Tile-标量与立即数 → tadds、tsubs、tmuls、tdivs、tcmps、tsels、texpands、tfmods、trems、tands、tors、txors、tshls、tshrs、tlrelu、taddsc、tsubsc

## Related Ops / Instruction Set Links

- Communication overview: [Communication and Runtime](../other/communication-and-runtime.md)
- Collective operations: [TGET](./TGET.md), [TPUT](./TPUT.md), [TREDUCE](./TREDUCE.md), [TSCATTLER](./TSCATTER.md), [TGATHER](./TGATHER.md)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Typo in the related operations list: TSCATTLER should be TSCATTER. This typo is recurring across multiple communication documentation files in this PR.

Suggested change
- Collective operations: [TGET](./TGET.md), [TPUT](./TPUT.md), [TREDUCE](./TREDUCE.md), [TSCATTLER](./TSCATTER.md), [TGATHER](./TGATHER.md)
- Collective operations: [TGET](./TGET.md), [TPUT](./TPUT.md), [TREDUCE](./TREDUCE.md), [TSCATTER](./TSCATTER.md), [TGATHER](./TGATHER.md)

- [TGATHER](./TGATHER_zh.md)
- [TSCATTER](./TSCATTER_zh.md)
- 通信概述:[通信与运行时](../other/communication-and-runtime_zh.md)
- 集合通信:[TGATHER](./TGATHER_zh.md)、[TSCATTLER](./TSCATTER_zh.md)、[TREDUCE](./TREDUCE_zh.md)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Typo in the related operations list: TSCATTLER should be TSCATTER.

Suggested change
- 集合通信:[TGATHER](./TGATHER_zh.md)[TSCATTLER](./TSCATTER_zh.md)[TREDUCE](./TREDUCE_zh.md)
- 集合通信:[TGATHER](./TGATHER_zh.md)[TSCATTER](./TSCATTER_zh.md)[TREDUCE](./TREDUCE_zh.md)

- 若 `TileData` 具有静态 `ValidCol`,`GetShape(DIM_4)` 必须能被 `ValidCol` 整除。如需支持不足整列,应使用动态 `ValidCol` 的 Tile

## 目标Profile限制

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Typo in the instruction name: TSCATTLER should be TSCATTER.

Suggested change
- `TSCATTER` 需要正确初始化的 `ParallelGroup`,覆盖所有参与的 NPU。

- 逆操作:[TGATHER](./TGATHER_zh.md)
- 集合通信:[TBROADCAST](./TBROADCAST_zh.md)、[TGATHER](./TGATHER_zh.md)、[TREDUCE](./TREDUCE_zh.md)
- 点对点通信:[TGET](./TGET_zh.md)、[TPUT](./TPUT_zh.md)
- 指令集:[其他与通信](../other/README_zh.md)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Typo in the related operations list: TSCATTLER should be TSCATTER.

Suggested change
- 指令集:[其他与通信](../other/README_zh.md)
- 集合通信:[TBROADCAST](./TBROADCAST_zh.md)[TGATHER](./TGATHER_zh.md)[TSCATTER](./TSCATTER_zh.md)[TREDUCE](./TREDUCE_zh.md)

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.

1 participant